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

Function ops_specifyAlgorithm

SRC/interpreter/PythonAnalysisBuilder.cpp:845–861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843}
844
845PyObject *ops_specifyAlgorithm(PyObject *self, PyObject *args)
846{
847 OPS_ResetCommandLine(PyTuple_Size(args), 0, args);
848
849 const char *type = OPS_GetString();
850 EquiSolnAlgo* theAlgorithm = OPS_ParseAlgorithmCommand(type);
851
852 if(theAlgorithm == 0) {
853 PyErr_SetString(PyExc_RuntimeError,"failed to create Algorithm ");
854 return NULL;
855 }
856
857 anaBuilder.set(theAlgorithm);
858
859 Py_INCREF(Py_None);
860 return Py_None;
861}
862
863PyObject *ops_specifyIntegrator(PyObject *self, PyObject *args)
864{

Callers

nothing calls this directly

Calls 3

OPS_ResetCommandLineFunction · 0.85
OPS_GetStringFunction · 0.70
setMethod · 0.45

Tested by

no test coverage detected