ikarus-project / ikarus

Ikarus is a C++-based library that uses DUNE modules to solve partial differential equations with the finite element method and more.
https://ikarus-project.github.io/
Other
5 stars 3 forks source link

Write sanity checks such that correct arguments are passed for wrt() function #195

Closed tarun-mitruka closed 8 months ago

tarun-mitruka commented 9 months ago

Example:

const Eigen::Matrix<ScalarType, 3, 2> gradu = toEigen(
            uFunction.evaluateDerivative(gpIndex, wrt(spatialAll, Dune::on(DerivativeDirections::referenceElement))));

should throw an error as a reasonable usage of wrt() will be

const Eigen::Matrix<ScalarType, 3, 2> gradu = toEigen(
            uFunction.evaluateDerivative(gpIndex, wrt(spatialAll), Dune::on(DerivativeDirections::referenceElement)));
rath3t commented 8 months ago

ikarus-project/dune-localfefunctions#16 will close this