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

Function GetGradient

fem/shapefunction_utils.hpp:12–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10 // for shape functions
11 template <int DIM, typename SCAL>
12 auto GetGradient (const AutoDiff<DIM,SCAL> & ad)
13 {
14 Vec<DIM,SCAL> grad;
15 for (int i = 0; i < DIM; i++)
16 grad(i) = ad.DValue(i);
17 return grad;
18 }
19
20
21

Callers 15

ValueMethod · 0.85
ValueMethod · 0.85
CurlValueMethod · 0.85
ValueMethod · 0.85
CurlValueMethod · 0.85
ValueMethod · 0.85
CurlValueMethod · 0.85
GetGradientMethod · 0.85
CalcFacetDShapeVolIPMethod · 0.85
CalcDShapeMethod · 0.85
EvaluateGradMethod · 0.85
EvaluateGradTransMethod · 0.85

Calls 1

gradFunction · 0.85

Tested by

no test coverage detected