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

Method GridFunctionCoefficientFunction

comp/gridfunction.cpp:1217–1229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1215
1216
1217 GridFunctionCoefficientFunction ::
1218 GridFunctionCoefficientFunction (shared_ptr<GridFunction> agf, int acomp)
1219 : CoefficientFunctionNoDerivative(1, agf->GetFESpace()->IsComplex()),
1220 gf_shared_ptr(agf), gf(agf.get()), comp (acomp)
1221 {
1222 fes = gf->GetFESpace();
1223 SetDimensions (gf->Dimensions());
1224
1225 for (auto vb : { VOL, BND, BBND, BBBND })
1226 diffop[vb] = gf->GetFESpace()->GetEvaluator(vb);
1227
1228 SetVariable(true);
1229 }
1230
1231 GridFunctionCoefficientFunction ::
1232 GridFunctionCoefficientFunction (shared_ptr<DifferentialOperator> adiffop,

Callers

nothing calls this directly

Calls 8

SetVariableFunction · 0.85
GetFESpaceMethod · 0.80
DimensionsMethod · 0.80
SetDimensionsFunction · 0.50
IsComplexMethod · 0.45
getMethod · 0.45
GetTraceMethod · 0.45
VBMethod · 0.45

Tested by

no test coverage detected