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:
@@ -22,6 +22,16 @@ ct_get_cantera_error(PyObject *self, PyObject *args)
|
||||
return msg;
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
ct_refcnt(PyObject *self, PyObject *args)
|
||||
{
|
||||
PyObject* o;
|
||||
if (!PyArg_ParseTuple(args, "O", &o)) return NULL;
|
||||
cout << "refcnt = " << o->ob_refcnt << endl;
|
||||
PyObject* cnt = Py_BuildValue("i",o->ob_refcnt);
|
||||
return cnt;
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
ct_print(PyObject *self, PyObject *args)
|
||||
{
|
||||
|
||||
@@ -324,6 +324,17 @@ py_wall_install(PyObject *self, PyObject *args)
|
||||
return Py_BuildValue("i",0);
|
||||
}
|
||||
|
||||
static PyObject*
|
||||
py_wall_setkinetics(PyObject *self, PyObject *args)
|
||||
{
|
||||
int n, k1, k2;
|
||||
if (!PyArg_ParseTuple(args, "iii:wall_setkinetics", &n, &k1, &k2))
|
||||
return NULL;
|
||||
int iok = wall_setkinetics(n, k1, k2);
|
||||
if (iok < 0) return reportError(iok);
|
||||
return Py_BuildValue("i",0);
|
||||
}
|
||||
|
||||
static PyObject*
|
||||
py_wall_vdot(PyObject *self, PyObject *args)
|
||||
{
|
||||
|
||||
@@ -6,9 +6,23 @@ py_xml_new(PyObject *self, PyObject *args)
|
||||
if (!PyArg_ParseTuple(args, "s:xml_new", &nm))
|
||||
return NULL;
|
||||
int n = xml_new(nm);
|
||||
return Py_BuildValue("i",n);
|
||||
PyObject* pn = Py_BuildValue("i",n);
|
||||
return pn;
|
||||
}
|
||||
|
||||
static PyObject*
|
||||
py_xml_get_XML_File(PyObject *self, PyObject *args)
|
||||
{
|
||||
char* file;
|
||||
if (!PyArg_ParseTuple(args, "s:xml_get_XML_File", &file))
|
||||
return NULL;
|
||||
int n = xml_get_XML_File(file);
|
||||
if (n < 0) return reportError(n);
|
||||
PyObject* pn = Py_BuildValue("i",n);
|
||||
return pn;
|
||||
}
|
||||
|
||||
|
||||
static PyObject*
|
||||
py_xml_del(PyObject *self, PyObject *args)
|
||||
{
|
||||
@@ -21,17 +35,9 @@ py_xml_del(PyObject *self, PyObject *args)
|
||||
}
|
||||
|
||||
static PyObject*
|
||||
py_xml_build(PyObject *self, PyObject *args)
|
||||
py_xml_clear(PyObject *self, PyObject *args)
|
||||
{
|
||||
int n, pre;
|
||||
char* file;
|
||||
if (!PyArg_ParseTuple(args, "isi:xml_build", &n, &file, &pre))
|
||||
return NULL;
|
||||
int iok;
|
||||
if (pre > 0)
|
||||
iok = xml_preprocess_and_build(n, file);
|
||||
else
|
||||
iok = xml_build(n, file);
|
||||
int iok = xml_clear();
|
||||
if (iok < 0) return reportError(iok);
|
||||
return Py_BuildValue("i",0);
|
||||
}
|
||||
|
||||
@@ -39,8 +39,9 @@ static PyMethodDef ct_methods[] = {
|
||||
{"xml_tag", py_xml_tag, METH_VARARGS},
|
||||
{"xml_value", py_xml_value, METH_VARARGS},
|
||||
{"xml_new", py_xml_new, METH_VARARGS},
|
||||
{"xml_get_XML_File", py_xml_get_XML_File, METH_VARARGS},
|
||||
{"xml_del", py_xml_del, METH_VARARGS},
|
||||
{"xml_build", py_xml_build, METH_VARARGS},
|
||||
{"xml_clear", py_xml_clear, METH_VARARGS},
|
||||
{"xml_child", py_xml_child, METH_VARARGS},
|
||||
{"xml_childbynumber", py_xml_childbynumber, METH_VARARGS},
|
||||
{"xml_findID", py_xml_findID, METH_VARARGS},
|
||||
@@ -82,6 +83,7 @@ static PyMethodDef ct_methods[] = {
|
||||
|
||||
{"get_Cantera_Error", ct_get_cantera_error, METH_VARARGS},
|
||||
{"ct_print", ct_print, METH_VARARGS},
|
||||
{"ct_refcnt", ct_refcnt, METH_VARARGS},
|
||||
{"readlog", ct_readlog, METH_VARARGS},
|
||||
{"ck2cti", ct_ck2cti, METH_VARARGS},
|
||||
{"buildSolutionFromXML", ct_buildSolutionFromXML, METH_VARARGS},
|
||||
@@ -193,6 +195,7 @@ static PyMethodDef ct_methods[] = {
|
||||
{"reactor_intEnergy_mass", py_reactor_intEnergy_mass, METH_VARARGS},
|
||||
{"reactor_massFraction", py_reactor_massFraction, METH_VARARGS},
|
||||
{"wall_install", py_wall_install, METH_VARARGS},
|
||||
{"wall_setkinetics", py_wall_setkinetics, METH_VARARGS},
|
||||
{"wall_area", py_wall_area, METH_VARARGS},
|
||||
{"wall_setArea", py_wall_setArea, METH_VARARGS},
|
||||
{"wall_setThermalResistance", py_wall_setThermalResistance, METH_VARARGS},
|
||||
|
||||
Reference in New Issue
Block a user