mutationpp / Mutationpp

The MUlticomponent Thermodynamic And Transport library for IONized gases in C++
GNU Lesser General Public License v3.0
103 stars 58 forks source link

Minor bug in SurfaceBalanceSolverMassEnergy #185

Closed mgoodson-cvd closed 2 years ago

mgoodson-cvd commented 2 years ago

There is a minor bug in the updateFunction routine in the SurfaceBalanceSolverMassEnergy class here. The applyTolerance should be called on the input vector v_X rather than the stored vector mv_X. mv_X already had the tolerance applied here, whereas v_X needs the application here.

Note that the tolerance is correctly applied to the input vector in the analogous routine in SurfaceBalanceSolverMass here.