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

Method AddDivTrans

fem/thdivfe_impl.hpp:471–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469
470 template <class FEL, ELEMENT_TYPE ET>
471 void T_HDivFiniteElement<FEL,ET> ::
472 AddDivTrans (const SIMD_BaseMappedIntegrationRule & bmir, BareVector<SIMD<double>> values,
473 BareSliceVector<> coefs) const
474 {
475 auto & mir = static_cast<const SIMD_MappedIntegrationRule<DIM,DIM>&> (bmir);
476 for (size_t i = 0; i < mir.Size(); i++)
477 {
478 SIMD<double> vali = values(i);
479 static_cast<const FEL*> (this) ->
480 T_CalcShape (GetTIP(mir[i]),
481 SBLambda ([coefs,vali] (size_t j, THDiv2DivShape<DIM,SIMD<double>> divshape)
482 {
483 coefs(j) += HSum(divshape.Get()*vali);
484 }));
485 }
486 }
487
488
489

Callers

nothing calls this directly

Calls 5

GetTIPFunction · 0.85
HSumFunction · 0.50
SizeMethod · 0.45
T_CalcShapeMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected