1 #ifndef ABLATELIBRARY_SIMPLEFORMULA_HPP
2 #define ABLATELIBRARY_SIMPLEFORMULA_HPP
4 #include "formulaBase.hpp"
6 namespace ablate::mathFunctions {
14 static PetscErrorCode ParsedPetscFunction(PetscInt dim, PetscReal
time,
const PetscReal x[], PetscInt Nf, PetscScalar* u,
void* ctx);
22 double Eval(
const double& x,
const double& y,
const double& z,
const double& t)
const override;
24 double Eval(
const double* xyz,
const int& ndims,
const double& t)
const override;
26 void Eval(
const double& x,
const double& y,
const double& z,
const double& t, std::vector<double>& result)
const override;
28 void Eval(
const double* xyz,
const int& ndims,
const double& t, std::vector<double>& result)
const override;