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

Function OPS_getCTestIter

SRC/interpreter/OpenSeesCommands.cpp:2979–2997  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2977}
2978
2979int OPS_getCTestIter()
2980{
2981 if (cmds == 0) return 0;
2982 ConvergenceTest* theTest = cmds->getCTest();
2983
2984 if (theTest != 0) {
2985 int res = theTest->getNumTests();
2986 int numdata = 1;
2987 if (OPS_SetIntOutput(&numdata, &res, true) < 0) {
2988 opserr << "WARNING failed to set test iter\n";
2989 return -1;
2990 }
2991
2992 return 0;
2993 }
2994
2995 opserr << "ERROR testIter - no convergence test!\n";
2996 return -1;
2997}
2998
2999int OPS_Database()
3000{

Callers 2

Tcl_ops_getCTestIterFunction · 0.85
Py_ops_getCTestIterFunction · 0.85

Calls 3

getCTestMethod · 0.80
OPS_SetIntOutputFunction · 0.70
getNumTestsMethod · 0.45

Tested by

no test coverage detected