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

Method GetTraceOperator

comp/fespace.cpp:4029–4045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4027
4028
4029 shared_ptr<BaseMatrix> CompoundFESpaceAllSame ::
4030 GetTraceOperator (shared_ptr<FESpace> tracespace, bool avg) const
4031 {
4032 shared_ptr<BaseMatrix> sum;
4033 auto compoundtrace = dynamic_pointer_cast<CompoundFESpaceAllSame>(tracespace);
4034 for (int i = 0; i < Spaces().Size(); i++)
4035 {
4036 auto tracei = ComposeOperators( compoundtrace->EmbeddingOperator(i),
4037 ComposeOperators ( Spaces()[i]->GetTraceOperator(compoundtrace->Spaces()[i], avg),
4038 this->RestrictionOperator(i)));
4039 if (sum)
4040 sum = AddOperators(sum, tracei, 1, 1);
4041 else
4042 sum = tracei;
4043 }
4044 return sum;
4045 }
4046
4047
4048

Callers

nothing calls this directly

Calls 3

ComposeOperatorsFunction · 0.85
AddOperatorsFunction · 0.85
SizeMethod · 0.45

Tested by

no test coverage detected