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

Method GetVectorPtr

comp/linearform.hpp:231–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229 virtual void AllocateVector () { cerr << "comp - allocate is illegal" << endl; }
230 virtual void Assemble (LocalHeap & lh) { cerr << "comp - assemble is illegal" << endl; }
231 virtual shared_ptr<BaseVector> GetVectorPtr() const
232 {
233 auto fes = dynamic_pointer_cast<CompoundFESpace> (base_lf->GetFESpace());
234 return base_lf->GetVectorPtr()->Range(fes->GetRange(comp));
235 // throw Exception ("comp - GetVectorPtr is illegal");
236 }
237 virtual BaseVector & GetVector () const
238 { throw Exception ("comp - GetVector is illegal"); }
239 };

Callers 2

GetMemoryUsageMethod · 0.80

Calls 3

GetFESpaceMethod · 0.80
RangeMethod · 0.45
GetRangeMethod · 0.45

Tested by

no test coverage detected