Skip to content

Commit

Permalink
Removing some redundant code as recommended in reviewer's comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkogekar authored and speth committed Jun 22, 2023
1 parent 98a8d9d commit 81ed856
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions include/cantera/oneD/StFlow.h
Expand Up @@ -9,9 +9,7 @@
#include "Domain1D.h"
#include "cantera/base/Array.h"
#include "cantera/base/Solution.h"
#include "cantera/thermo/IdealGasPhase.h"
#include "cantera/thermo/RedlichKwongMFTP.h"
#include "cantera/thermo/PengRobinson.h"
#include "cantera/thermo/ThermoPhase.h"
#include "cantera/kinetics/Kinetics.h"

namespace Cantera
Expand Down Expand Up @@ -83,8 +81,7 @@ class StFlow : public Domain1D
}

/**
* Set the thermo manager. Note that the flow equations assume
* the ideal gas equation.
* Set the thermo manager.
*
* @deprecated To be removed after Cantera 3.0 (unused)
*/
Expand Down
2 changes: 1 addition & 1 deletion src/oneD/StFlow.cpp
Expand Up @@ -584,7 +584,7 @@ void StFlow::evalResidual(double* x, double* rsd, int* diag,
}
sum *= GasConstant * T(x,j);
sum2 *= GasConstant * dtdzj;
} else if((m_thermo->type() == "RedlichKwong") || (m_thermo->type() == "PengRobinson"))
} else
{
// Update vectors m_hk_current, m_hk_left and m_hk_right
updateMolarEnthalpies(x, j);
Expand Down

0 comments on commit 81ed856

Please sign in to comment.