*** empty log message ***

This commit is contained in:
Dave Goodwin
2003-07-04 06:37:42 +00:00
parent 916c065a9f
commit 76526a6aa3
41 changed files with 2086 additions and 163 deletions

View File

@@ -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;

View File

@@ -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},