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

Function OPS_getNumElements

SRC/interpreter/OpenSeesOutputCommands.cpp:4006–4020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4004
4005
4006int OPS_getNumElements()
4007{
4008 Domain* theDomain = OPS_GetDomain();
4009 if (theDomain == 0) return -1;
4010
4011 int nEles = theDomain->getNumElements();
4012 int size = 1;
4013
4014 if (OPS_SetIntOutput(&size, &nEles, false) < 0) {
4015 opserr << "WARNING failed to set output\n";
4016 return -1;
4017 }
4018
4019 return 0;
4020}
4021
4022// Sensitivity:END /////////////////////////////////////////////

Callers 2

Tcl_ops_getNumElementsFunction · 0.85
Py_ops_getNumElementsFunction · 0.85

Calls 3

OPS_GetDomainFunction · 0.70
OPS_SetIntOutputFunction · 0.70
getNumElementsMethod · 0.45

Tested by

no test coverage detected