| 1098 | } |
| 1099 | |
| 1100 | PyObject *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 | |
| 1127 | PyObject *ops_rayleighDamping(PyObject *self, PyObject *args) |
nothing calls this directly
no test coverage detected