From cfb576c774648c43eb52d5c8f71b1f1fbba40b89 Mon Sep 17 00:00:00 2001 From: Dave Goodwin Date: Sun, 7 May 2006 21:17:28 +0000 Subject: [PATCH] added support for const pressure and flow reactors --- Cantera/clib/src/ctreactor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cantera/clib/src/ctreactor.cpp b/Cantera/clib/src/ctreactor.cpp index 06d34d58e..62c978f0b 100755 --- a/Cantera/clib/src/ctreactor.cpp +++ b/Cantera/clib/src/ctreactor.cpp @@ -114,7 +114,7 @@ extern "C" { int DLL_EXPORT reactor_setKineticsMgr(int i, int n) { reactor_t* r = _reactor(i); - if (r->type() == ReactorType) + if (r->type() >= ReactorType) ((Reactor*)r)->setKineticsMgr(*_kin(n)); return 0; } @@ -169,13 +169,13 @@ extern "C" { int DLL_EXPORT reactor_setEnergy(int i, int eflag) { reactor_t* r = _reactor(i); - if (r->type() == ReactorType) ((Reactor*)r)->setEnergy(eflag); + if (r->type() >= ReactorType) ((Reactor*)r)->setEnergy(eflag); return 0; } int DLL_EXPORT flowReactor_setMassFlowRate(int i, double mdot) { reactor_t* r = _reactor(i); - if (r->type() == ReactorType) ((FlowReactor*)r)->setMassFlowRate(mdot); + if (r->type() >= ReactorType) ((FlowReactor*)r)->setMassFlowRate(mdot); return 0; }