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

Method Transform

fem/coefficient.cpp:204–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202 }
203
204 shared_ptr<CoefficientFunction>
205 CoefficientFunction :: Transform (CoefficientFunction::T_Transform & transformation) const
206 {
207 if (InputCoefficientFunctions().Size())
208 throw Exception("Transform not overloaed, desc = "+GetDescription());
209
210 auto thisptr = const_pointer_cast<CoefficientFunction>(this->shared_from_this());
211 if (transformation.replace.find(thisptr) != transformation.replace.end())
212 return transformation.replace[thisptr];
213
214 return thisptr;
215 }
216
217 shared_ptr<CoefficientFunction> CoefficientFunction ::
218 Diff (const CoefficientFunction * var, shared_ptr<CoefficientFunction> dir) const

Callers

nothing calls this directly

Calls 6

GetDescriptionFunction · 0.85
findMethod · 0.80
SizeMethod · 0.45
shared_from_thisMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected