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

Method ComponentGridFunction

comp/gridfunction.cpp:1004–1013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1002
1003
1004 ComponentGridFunction ::
1005 ComponentGridFunction (shared_ptr<GridFunction> agf_parent, int acomp)
1006 : GridFunction (dynamic_cast<const CompoundFESpace&> (*agf_parent->GetFESpace())[acomp],
1007 agf_parent->GetName()+"."+ToString (acomp+1), Flags().SetFlag("autoupdate",false)),
1008 gf_parent(agf_parent), comp(acomp)
1009 {
1010 this->SetVisual(agf_parent->GetVisual());
1011 if (this->visual)
1012 Visualize (this, this->name);
1013 }
1014
1015 ComponentGridFunction ::
1016 ~ComponentGridFunction ()

Callers

nothing calls this directly

Calls 5

ToStringFunction · 0.85
VisualizeFunction · 0.85
GetFESpaceMethod · 0.80
GetNameMethod · 0.45
SetFlagMethod · 0.45

Tested by

no test coverage detected