| 3479 | } |
| 3480 | |
| 3481 | int OPS_totalCPU() |
| 3482 | { |
| 3483 | if (cmds == 0) return 0; |
| 3484 | EquiSolnAlgo* theAlgorithm = cmds->getAlgorithm(); |
| 3485 | if (theAlgorithm == 0) { |
| 3486 | opserr << "WARNING no algorithm is set\n"; |
| 3487 | return -1; |
| 3488 | } |
| 3489 | |
| 3490 | double value = theAlgorithm->getTotalTimeCPU(); |
| 3491 | int numdata = 1; |
| 3492 | if (OPS_SetDoubleOutput(&numdata, &value, true) < 0) { |
| 3493 | opserr << "WARNING failed to set output\n"; |
| 3494 | return -1; |
| 3495 | } |
| 3496 | |
| 3497 | return 0; |
| 3498 | } |
| 3499 | |
| 3500 | int OPS_solveCPU() |
| 3501 | { |
no test coverage detected