| 3498 | } |
| 3499 | |
| 3500 | int OPS_solveCPU() |
| 3501 | { |
| 3502 | if (cmds == 0) return 0; |
| 3503 | EquiSolnAlgo* theAlgorithm = cmds->getAlgorithm(); |
| 3504 | if (theAlgorithm == 0) { |
| 3505 | opserr << "WARNING no algorithm is set\n"; |
| 3506 | return -1; |
| 3507 | } |
| 3508 | |
| 3509 | double value = theAlgorithm->getSolveTimeCPU(); |
| 3510 | int numdata = 1; |
| 3511 | if (OPS_SetDoubleOutput(&numdata, &value, true) < 0) { |
| 3512 | opserr << "WARNING failed to set output\n"; |
| 3513 | return -1; |
| 3514 | } |
| 3515 | |
| 3516 | return 0; |
| 3517 | } |
| 3518 | |
| 3519 | int OPS_accelCPU() |
| 3520 | { |
no test coverage detected