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

Method Diff

fem/coefficient_geo.cpp:362–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360
361
362 virtual shared_ptr<CoefficientFunction>
363 Diff (const CoefficientFunction * var, shared_ptr<CoefficientFunction> dir) const override
364 {
365 // if (var == shape.get())
366 if (dynamic_cast<const DiffShapeCF*>(var))
367 return -TransposeCF(dir->Operator("Gradboundary")) * const_cast<cl_NormalVectorCF*>(this)->shared_from_this();
368 return CoefficientFunctionNoDerivative::Diff(var, dir);
369 }
370
371 };
372

Callers

nothing calls this directly

Calls 4

TransposeCFFunction · 0.85
DiffFunction · 0.85
OperatorMethod · 0.45
shared_from_thisMethod · 0.45

Tested by

no test coverage detected