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

Method AddMultiDimComponent

comp/gridfunction.cpp:270–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268
269
270 void GridFunction :: AddMultiDimComponent (BaseVector & v, bool copy)
271 {
272 vec.SetSize (vec.Size()+1);
273 if (copy)
274 {
275 vec[multidim] = v.CreateVector();
276 *vec[multidim] = v;
277 }
278 else
279 vec[multidim] = v.shared_from_this();
280 multidim++;
281 flags.SetFlag ("multidim", multidim);
282 }
283
284
285 void GridFunction :: Interpolate (const CoefficientFunction & cf,

Callers

nothing calls this directly

Calls 5

SetSizeMethod · 0.45
SizeMethod · 0.45
CreateVectorMethod · 0.45
shared_from_thisMethod · 0.45
SetFlagMethod · 0.45

Tested by

no test coverage detected