| 825 | } |
| 826 | |
| 827 | PyObject *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 | |
| 845 | PyObject *ops_specifyAlgorithm(PyObject *self, PyObject *args) |
| 846 | { |
nothing calls this directly
no test coverage detected