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

Function OPS_numIter

SRC/interpreter/OpenSeesCommands.cpp:3557–3574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3555}
3556
3557int 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
3576int OPS_systemSize()
3577{

Callers 2

Tcl_ops_numIterFunction · 0.70
Py_ops_numIterFunction · 0.70

Calls 3

OPS_SetIntOutputFunction · 0.70
getAlgorithmMethod · 0.45
getNumIterationsMethod · 0.45

Tested by

no test coverage detected