10 #include "gtest/gtest.h" 14 const double eps = 1.0E-8;
Real cubic(Real x, Real x0, Real y0, Real y0p, Real x1, Real y1, Real y1p)
Cubic function f(x) that satisfies f(x0) = y0 f'(x0) = y0p f(x1) = y1 f'(x1) = y1p.
TEST(PorousFlowCubic, cubic)
Test cubic.
Real dcubic(Real x, Real x0, Real y0, Real y0p, Real x1, Real y1, Real y1p)
Derivative of cubic function, f(x), with respect to x.
Utility to produce the value and derivative of a cubic function at a point.