Skip to content

Commit

Permalink
Fix set_multiplier behavior for InterfaceKinetics
Browse files Browse the repository at this point in the history
  • Loading branch information
speth authored and ischoegl committed Jun 14, 2023
1 parent f667e0e commit 4cb4e18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/cantera/kinetics/InterfaceKinetics.h
Expand Up @@ -152,6 +152,7 @@ class InterfaceKinetics : public Kinetics
virtual void resizeSpecies();
virtual bool addReaction(shared_ptr<Reaction> r, bool resize=true);
virtual void modifyReaction(size_t i, shared_ptr<Reaction> rNew);
virtual void setMultiplier(size_t i, double f);
//! @}

//! Internal routine that updates the Rates of Progress of the reactions
Expand Down
6 changes: 6 additions & 0 deletions src/kinetics/InterfaceKinetics.cpp
Expand Up @@ -479,6 +479,12 @@ void InterfaceKinetics::modifyReaction(size_t i, shared_ptr<Reaction> r_base)
m_temp += 0.1;
}

void InterfaceKinetics::setMultiplier(size_t i, double f)
{
Kinetics::setMultiplier(i, f);
m_ROP_ok = false;
}

void InterfaceKinetics::setIOFlag(int ioFlag)
{
m_ioFlag = ioFlag;
Expand Down

0 comments on commit 4cb4e18

Please sign in to comment.