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

Function ops_setLoadConst

SRC/interpreter/PythonAnalysisBuilder.cpp:1100–1124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1098}
1099
1100PyObject *ops_setLoadConst(PyObject *self, PyObject *args)
1101{
1102 OPS_ResetCommandLine(PyTuple_Size(args), 0, args);
1103
1104 int numData = OPS_GetNumRemainingInputArgs();
1105 if(numData < 2) {
1106 Py_INCREF(Py_None);
1107 return Py_None;
1108 }
1109
1110 Domain* theDomain = OPS_GetDomain();
1111 theDomain->setLoadConstant();
1112
1113 std::string type = OPS_GetString();
1114
1115 if(type == "-time") {
1116 double newTime;
1117 numData = 1;
1118 if(OPS_GetDoubleInput(&numData,&newTime) < 0) return NULL;
1119 theDomain->setCurrentTime(newTime);
1120 theDomain->setCommittedTime(newTime);
1121 }
1122 Py_INCREF(Py_None);
1123 return Py_None;
1124}
1125
1126
1127PyObject *ops_rayleighDamping(PyObject *self, PyObject *args)

Callers

nothing calls this directly

Calls 8

OPS_ResetCommandLineFunction · 0.85
OPS_GetDomainFunction · 0.70
OPS_GetStringFunction · 0.70
OPS_GetDoubleInputFunction · 0.70
setLoadConstantMethod · 0.45
setCurrentTimeMethod · 0.45
setCommittedTimeMethod · 0.45

Tested by

no test coverage detected