mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
*** empty log message ***
This commit is contained in:
@@ -30,6 +30,21 @@ py_transport_delete(PyObject *self, PyObject *args)
|
||||
}
|
||||
|
||||
|
||||
static PyObject*
|
||||
py_setParameters(PyObject *self, PyObject *args) {
|
||||
int n, k, typ;
|
||||
PyObject* parray;
|
||||
if (!PyArg_ParseTuple(args, "iiiO:py_setParameters",
|
||||
&n, &typ, &k, &parray)) return NULL;
|
||||
|
||||
PyArrayObject* a = (PyArrayObject*)parray;
|
||||
double* xd = (double*)a->data;
|
||||
int ok = trans_setParameters(n, typ, k, xd);
|
||||
if (ok < 0) return reportError(ok);
|
||||
return Py_BuildValue("i",ok);
|
||||
}
|
||||
|
||||
|
||||
static PyObject*
|
||||
py_viscosity(PyObject *self, PyObject *args) {
|
||||
int n;
|
||||
|
||||
@@ -75,6 +75,7 @@ static PyMethodDef ct_methods[] = {
|
||||
{"tran_binaryDiffCoeffs", py_binaryDiffCoeffs, METH_VARARGS},
|
||||
{"tran_mixDiffCoeffs", py_mixDiffCoeffs, METH_VARARGS},
|
||||
{"tran_multiDiffCoeffs", py_multiDiffCoeffs, METH_VARARGS},
|
||||
{"tran_setParameters", py_setParameters, METH_VARARGS},
|
||||
|
||||
{"get_Cantera_Error", ct_get_cantera_error, METH_VARARGS},
|
||||
{"ct_print", ct_print, METH_VARARGS},
|
||||
|
||||
Reference in New Issue
Block a user