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

Method ApplyTrans

fem/diffop.cpp:202–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200
201
202 void DifferentialOperator ::
203 ApplyTrans (const FiniteElement & fel,
204 const BaseMappedIntegrationPoint & mip,
205 FlatVector<double> flux,
206 BareSliceVector<double> x,
207 LocalHeap & lh) const
208 {
209#ifndef FASTCOMPILE
210 static int cnt = 0;
211 if (cnt < 3)
212 {
213 cnt++;
214 cout << "called base class apply trans, type = " << typeid(*this).name() << endl;
215 }
216#endif
217 HeapReset hr(lh);
218 FlatMatrix<double,ColMajor> mat(Dim(), fel.GetNDof(), lh);
219 CalcMatrix (fel, mip, mat, lh);
220 x.Range(0,fel.GetNDof()) = Trans(mat) * flux;
221 }
222
223
224 void DifferentialOperator ::

Callers

nothing calls this directly

Calls 12

BlockDimFunction · 0.85
DimFunction · 0.70
TransFunction · 0.50
RangeFunction · 0.50
GetNDofMethod · 0.45
RangeMethod · 0.45
SizeMethod · 0.45
RowMethod · 0.45
DimMethod · 0.45
ApplyTransMethod · 0.45
HeightMethod · 0.45
ColMethod · 0.45

Tested by

no test coverage detected