| 3536 | } |
| 3537 | |
| 3538 | int OPS_numFact() |
| 3539 | { |
| 3540 | if (cmds == 0) return 0; |
| 3541 | EquiSolnAlgo* theAlgorithm = cmds->getAlgorithm(); |
| 3542 | if (theAlgorithm == 0) { |
| 3543 | opserr << "WARNING no algorithm is set\n"; |
| 3544 | return -1; |
| 3545 | } |
| 3546 | |
| 3547 | double value = theAlgorithm->getNumFactorizations(); |
| 3548 | int numdata = 1; |
| 3549 | if (OPS_SetDoubleOutput(&numdata, &value, true) < 0) { |
| 3550 | opserr << "WARNING failed to set output\n"; |
| 3551 | return -1; |
| 3552 | } |
| 3553 | |
| 3554 | return 0; |
| 3555 | } |
| 3556 | |
| 3557 | int OPS_numIter() |
| 3558 | { |
no test coverage detected