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

Function OPS_solveCPU

SRC/interpreter/OpenSeesCommands.cpp:3500–3517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3498}
3499
3500int OPS_solveCPU()
3501{
3502 if (cmds == 0) return 0;
3503 EquiSolnAlgo* theAlgorithm = cmds->getAlgorithm();
3504 if (theAlgorithm == 0) {
3505 opserr << "WARNING no algorithm is set\n";
3506 return -1;
3507 }
3508
3509 double value = theAlgorithm->getSolveTimeCPU();
3510 int numdata = 1;
3511 if (OPS_SetDoubleOutput(&numdata, &value, true) < 0) {
3512 opserr << "WARNING failed to set output\n";
3513 return -1;
3514 }
3515
3516 return 0;
3517}
3518
3519int OPS_accelCPU()
3520{

Callers 2

Tcl_ops_solveCPUFunction · 0.85
Py_ops_solveCPUFunction · 0.85

Calls 3

OPS_SetDoubleOutputFunction · 0.70
getAlgorithmMethod · 0.45
getSolveTimeCPUMethod · 0.45

Tested by

no test coverage detected