| 3517 | } |
| 3518 | |
| 3519 | int OPS_accelCPU() |
| 3520 | { |
| 3521 | if (cmds == 0) return 0; |
| 3522 | EquiSolnAlgo* theAlgorithm = cmds->getAlgorithm(); |
| 3523 | if (theAlgorithm == 0) { |
| 3524 | opserr << "WARNING no algorithm is set\n"; |
| 3525 | return -1; |
| 3526 | } |
| 3527 | |
| 3528 | double value = theAlgorithm->getAccelTimeCPU(); |
| 3529 | int numdata = 1; |
| 3530 | if (OPS_SetDoubleOutput(&numdata, &value, true) < 0) { |
| 3531 | opserr << "WARNING failed to set output\n"; |
| 3532 | return -1; |
| 3533 | } |
| 3534 | |
| 3535 | return 0; |
| 3536 | } |
| 3537 | |
| 3538 | int OPS_numFact() |
| 3539 | { |
no test coverage detected