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

Function OPS_systemSize

SRC/interpreter/OpenSeesCommands.cpp:3576–3593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3574}
3575
3576int OPS_systemSize()
3577{
3578 if (cmds == 0) return 0;
3579 LinearSOE* theSOE = cmds->getSOE();
3580 if (theSOE == 0) {
3581 opserr << "WARNING no system is set\n";
3582 return -1;
3583 }
3584
3585 int value = theSOE->getNumEqn();
3586 int numdata = 1;
3587 if (OPS_SetIntOutput(&numdata, &value, true) < 0) {
3588 opserr << "WARNING failed to set output\n";
3589 return -1;
3590 }
3591
3592 return 0;
3593}
3594
3595int OPS_domainCommitTag() {
3596 if (cmds == 0) {

Callers 2

Tcl_ops_systemSizeFunction · 0.85
Py_ops_systemSizeFunction · 0.85

Calls 3

getSOEMethod · 0.80
OPS_SetIntOutputFunction · 0.70
getNumEqnMethod · 0.45

Tested by

no test coverage detected