MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / Deriv

Function Deriv

comp/gridfunction.hpp:216–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214 }
215
216 shared_ptr<GridFunctionCoefficientFunction> Deriv()
217 {
218 auto res = derivcf.lock();
219 if(res) return res;
220
221 // derivcf is not set -> initialize it
222 res =
223 make_shared<GridFunctionCoefficientFunction> (dynamic_pointer_cast<GridFunction> (shared_from_this()),
224 GetFESpace()->GetFluxEvaluator(),
225 GetFESpace()->GetFluxEvaluator(BND),
226 GetFESpace()->GetFluxEvaluator(BBND));
227 res -> generated_from_deriv = true;
228 derivcf = res;
229 return res;
230 }
231
232 shared_ptr<CoefficientFunction> Operator (shared_ptr<DifferentialOperator> diffop) const override;
233 shared_ptr<CoefficientFunction> Operator (const string& name) const override;

Callers 2

OperatorMethod · 0.85
GetDerivFunction · 0.85

Calls 1

GetFESpaceFunction · 0.70

Tested by

no test coverage detected