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

Function OPS_accelCPU

SRC/interpreter/OpenSeesCommands.cpp:3519–3536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3517}
3518
3519int OPS_accelCPU()
3520{
3521 if (cmds == 0) return 0;
3522 EquiSolnAlgo* theAlgorithm = cmds->getAlgorithm();
3523 if (theAlgorithm == 0) {
3524 opserr << "WARNING no algorithm is set\n";
3525 return -1;
3526 }
3527
3528 double value = theAlgorithm->getAccelTimeCPU();
3529 int numdata = 1;
3530 if (OPS_SetDoubleOutput(&numdata, &value, true) < 0) {
3531 opserr << "WARNING failed to set output\n";
3532 return -1;
3533 }
3534
3535 return 0;
3536}
3537
3538int OPS_numFact()
3539{

Callers 2

Tcl_ops_accelCPUFunction · 0.85
Py_ops_accelCPUFunction · 0.85

Calls 3

OPS_SetDoubleOutputFunction · 0.70
getAlgorithmMethod · 0.45
getAccelTimeCPUMethod · 0.45

Tested by

no test coverage detected