Fixed a bug in MPL/Curve
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.
-
Feature description was added to the changelog -
Tests covering your feature were added? -
Any new feature or behavior change was documented?