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

Function Py_ops_computeGradients

SRC/interpreter/PythonWrapper.cpp:2264–2274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2262}
2263
2264static PyObject *Py_ops_computeGradients(PyObject *self, PyObject *args)
2265{
2266 wrapper->resetCommandLine(PyTuple_Size(args), 1, args);
2267
2268 if (OPS_computeGradients() < 0) {
2269 opserr<<(void*)0;
2270 return NULL;
2271 }
2272
2273 return wrapper->getResults();
2274}
2275
2276static PyObject *Py_ops_sensitivityAlgorithm(PyObject *self, PyObject *args)
2277{

Callers

nothing calls this directly

Calls 3

OPS_computeGradientsFunction · 0.85
getResultsMethod · 0.80
resetCommandLineMethod · 0.45

Tested by

no test coverage detected