Skip to content

Fixed a bug in MPL/Curve

wenqing requested to merge wenqing/ogs:MPL_fixing into master

In the current Curve property, if the primary variable is not same as the specified internal variable, dValue takes the value of the primary variable as the value of the internal variable, and it returns a wrong value.

This causes significant problem in the computation. For example, a density is given by a curve of rho(T), and drho/dp is needed in the computation. The current Curve::dValue returns rho(T)/dT with T=p.

This MR fixes this bug.

  1. Feature description was added to the changelog
  2. Tests covering your feature were added?
  3. Any new feature or behavior change was documented?

Merge request reports