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

Function OPS_totalCPU

SRC/interpreter/OpenSeesCommands.cpp:3481–3498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3479}
3480
3481int OPS_totalCPU()
3482{
3483 if (cmds == 0) return 0;
3484 EquiSolnAlgo* theAlgorithm = cmds->getAlgorithm();
3485 if (theAlgorithm == 0) {
3486 opserr << "WARNING no algorithm is set\n";
3487 return -1;
3488 }
3489
3490 double value = theAlgorithm->getTotalTimeCPU();
3491 int numdata = 1;
3492 if (OPS_SetDoubleOutput(&numdata, &value, true) < 0) {
3493 opserr << "WARNING failed to set output\n";
3494 return -1;
3495 }
3496
3497 return 0;
3498}
3499
3500int OPS_solveCPU()
3501{

Callers 2

Tcl_ops_totalCPUFunction · 0.85
Py_ops_totalCPUFunction · 0.85

Calls 3

OPS_SetDoubleOutputFunction · 0.70
getAlgorithmMethod · 0.45
getTotalTimeCPUMethod · 0.45

Tested by

no test coverage detected