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

Method Diff

fem/coefficient_geo.cpp:463–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461 }
462
463 virtual shared_ptr<CoefficientFunction>
464 Diff (const CoefficientFunction * var, shared_ptr<CoefficientFunction> dir) const override
465 {
466 //d/dt tang|t=0 = dX*tang - ((dX*tang)*tang)*tang
467 // if (var == shape.get())
468 if (dynamic_cast<const DiffShapeCF*>(var))
469 return dir->Operator("Gradboundary") * const_cast<cl_TangentialVectorCF*>(this)->shared_from_this() - InnerProduct(dir->Operator("Gradboundary")*const_cast<cl_TangentialVectorCF*>(this)->shared_from_this(),const_cast<cl_TangentialVectorCF*>(this)->shared_from_this())*const_cast<cl_TangentialVectorCF*>(this)->shared_from_this();
470 return CoefficientFunctionNoDerivative::Diff(var, dir);
471 }
472 };
473
474

Callers

nothing calls this directly

Calls 4

DiffFunction · 0.85
InnerProductFunction · 0.70
OperatorMethod · 0.45
shared_from_thisMethod · 0.45

Tested by

no test coverage detected