Skip to content

Commit

Permalink
Fix temperature delta for IdealGasConstPressureMoleReactor
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Aug 30, 2022
1 parent 3fc279e commit 357902c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zeroD/IdealGasConstPressureMoleReactor.cpp
Expand Up @@ -167,7 +167,7 @@ Eigen::SparseMatrix<double> IdealGasConstPressureMoleReactor::jacobian()
if (m_energy) {
// getting perturbed state for finite difference
double deltaTemp = m_thermo->temperature()
* std::numeric_limits<double>::epsilon();
* std::sqrt(std::numeric_limits<double>::epsilon());
// finite difference temperature derivatives
vector_fp ydotNext(m_nv);
vector_fp yCurrent(m_nv);
Expand Down

0 comments on commit 357902c

Please sign in to comment.