Skip to content

Commit

Permalink
fork function of base object now passing KineticsConditions to all ki…
Browse files Browse the repository at this point in the history
…netics models
  • Loading branch information
SylvainPlessis authored and pbauman committed Feb 5, 2016
1 parent c27e46e commit 9b245dd
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/kinetics/include/antioch/kinetics_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,25 +184,25 @@ namespace Antioch{
{
case(KineticsModel::CONSTANT):
{
return (static_cast<const ConstantRate<CoeffType>*>(this))->rate(conditions.T());
return (static_cast<const ConstantRate<CoeffType>*>(this))->rate(conditions);
}
break;

case(KineticsModel::HERCOURT_ESSEN):
{
return (static_cast<const HercourtEssenRate<CoeffType>*>(this))->rate(conditions.T());
return (static_cast<const HercourtEssenRate<CoeffType>*>(this))->rate(conditions);
}
break;

case(KineticsModel::BERTHELOT):
{
return (static_cast<const BerthelotRate<CoeffType>*>(this))->rate(conditions.T());
return (static_cast<const BerthelotRate<CoeffType>*>(this))->rate(conditions);
}
break;

case(KineticsModel::ARRHENIUS):
{
return (static_cast<const ArrheniusRate<CoeffType>*>(this))->rate(conditions.T());
return (static_cast<const ArrheniusRate<CoeffType>*>(this))->rate(conditions);
}
break;

Expand Down Expand Up @@ -261,25 +261,25 @@ namespace Antioch{
{
case(KineticsModel::CONSTANT):
{
return (static_cast<const ConstantRate<CoeffType>*>(this))->derivative(conditions.T());
return (static_cast<const ConstantRate<CoeffType>*>(this))->derivative(conditions);
}
break;

case(KineticsModel::HERCOURT_ESSEN):
{
return (static_cast<const HercourtEssenRate<CoeffType>*>(this))->derivative(conditions.T());
return (static_cast<const HercourtEssenRate<CoeffType>*>(this))->derivative(conditions);
}
break;

case(KineticsModel::BERTHELOT):
{
return (static_cast<const BerthelotRate<CoeffType>*>(this))->derivative(conditions.T());
return (static_cast<const BerthelotRate<CoeffType>*>(this))->derivative(conditions);
}
break;

case(KineticsModel::ARRHENIUS):
{
return (static_cast<const ArrheniusRate<CoeffType>*>(this))->derivative(conditions.T());
return (static_cast<const ArrheniusRate<CoeffType>*>(this))->derivative(conditions);
}
break;

Expand Down Expand Up @@ -339,25 +339,25 @@ namespace Antioch{
{
case(KineticsModel::CONSTANT):
{
(static_cast<const ConstantRate<CoeffType>*>(this))->rate_and_derivative(conditions.T(),rate,drate_dT);
(static_cast<const ConstantRate<CoeffType>*>(this))->rate_and_derivative(conditions,rate,drate_dT);
}
break;

case(KineticsModel::HERCOURT_ESSEN):
{
(static_cast<const HercourtEssenRate<CoeffType>*>(this))->rate_and_derivative(conditions.T(),rate,drate_dT);
(static_cast<const HercourtEssenRate<CoeffType>*>(this))->rate_and_derivative(conditions,rate,drate_dT);
}
break;

case(KineticsModel::BERTHELOT):
{
(static_cast<const BerthelotRate<CoeffType>*>(this))->rate_and_derivative(conditions.T(),rate,drate_dT);
(static_cast<const BerthelotRate<CoeffType>*>(this))->rate_and_derivative(conditions,rate,drate_dT);
}
break;

case(KineticsModel::ARRHENIUS):
{
(static_cast<const ArrheniusRate<CoeffType>*>(this))->rate_and_derivative(conditions.T(),rate,drate_dT);
(static_cast<const ArrheniusRate<CoeffType>*>(this))->rate_and_derivative(conditions,rate,drate_dT);
}
break;

Expand Down

0 comments on commit 9b245dd

Please sign in to comment.