MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / OPS_numFact

Function OPS_numFact

SRC/interpreter/OpenSeesCommands.cpp:3538–3555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3536}
3537
3538int 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
3557int OPS_numIter()
3558{

Callers 2

Tcl_ops_numFactFunction · 0.85
Py_ops_numFactFunction · 0.85

Calls 3

OPS_SetDoubleOutputFunction · 0.70
getAlgorithmMethod · 0.45
getNumFactorizationsMethod · 0.45

Tested by

no test coverage detected