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

Function ops_specifyConstraintHandler

SRC/interpreter/PythonAnalysisBuilder.cpp:827–843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

825}
826
827PyObject *ops_specifyConstraintHandler(PyObject *self, PyObject *args)
828{
829 OPS_ResetCommandLine(PyTuple_Size(args), 0, args);
830
831 const char *type = OPS_GetString();
832 ConstraintHandler* theHandler = OPS_ParseConstraintHandlerCommand(type);
833
834 if(theHandler == 0) {
835 PyErr_SetString(PyExc_RuntimeError,"failed to create ConstraintHandler ");
836 return NULL;
837 }
838
839 anaBuilder.set(theHandler);
840
841 Py_INCREF(Py_None);
842 return Py_None;
843}
844
845PyObject *ops_specifyAlgorithm(PyObject *self, PyObject *args)
846{

Callers

nothing calls this directly

Calls 3

OPS_ResetCommandLineFunction · 0.85
OPS_GetStringFunction · 0.70
setMethod · 0.45

Tested by

no test coverage detected