| 3555 | } |
| 3556 | |
| 3557 | int OPS_numIter() |
| 3558 | { |
| 3559 | if (cmds == 0) return 0; |
| 3560 | EquiSolnAlgo* theAlgorithm = cmds->getAlgorithm(); |
| 3561 | if (theAlgorithm == 0) { |
| 3562 | opserr << "WARNING no algorithm is set\n"; |
| 3563 | return -1; |
| 3564 | } |
| 3565 | |
| 3566 | int value = theAlgorithm->getNumIterations(); |
| 3567 | int numdata = 1; |
| 3568 | if (OPS_SetIntOutput(&numdata, &value, true) < 0) { |
| 3569 | opserr << "WARNING failed to set output\n"; |
| 3570 | return -1; |
| 3571 | } |
| 3572 | |
| 3573 | return value; |
| 3574 | } |
| 3575 | |
| 3576 | int OPS_systemSize() |
| 3577 | { |
no test coverage detected