Common components for OPM, in particular build system (cmake).
to create a constant, there are now always the three functions Opm::constant<Eval>(value); Opm::constant<Eval>(numDeriv, value); Opm::constant<Eval>(x, value); // with 'x' being the 'template' of the returned value If a given call does not make sense, an exception is thrown: - Plain floating point objects like `float`, `double` or `quad` complain if the specified number of derivatives is not zero. - Statically sized evaluations throw if the specified number of derivatives of passed to the function is not equal to their static size. - Dynamically sized evaluations complain if the number of derivatives cannot be determined. The third variant of `Opm::constant()` works unconditionally. The `Opm::variable()` helpers are modified analogously. |
||
---|---|---|
bin | ||
jenkins | ||
opm/material | ||
tests |