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

Method CalcMatrix

comp/globalspace.cpp:6–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4{
5
6 void GlobalSpace::VolDiffOp::CalcMatrix
7 (const FiniteElement & bfel,
8 const BaseMappedIntegrationPoint & mip,
9 BareSliceMatrix<double,ColMajor> mat,
10 LocalHeap & lh) const
11 {
12 HeapReset hr(lh);
13 FlatVector<double> basisvec(basis->Dimension(), lh);
14 basis -> Evaluate (mip, basisvec);
15
16 for (int i = 0, ii = 0; i < dim; i++)
17 for (int j = 0; j < vecdim; j++)
18 mat(j,i) = basisvec(ii++);
19 }
20
21
22 void GlobalSpace::VolDiffOp::

Callers 4

AssembleBDBMethod · 0.45
AddMatrixGFMethod · 0.45
CalcLinearizedAddMethod · 0.45
Transfer2TPMeshFunction · 0.45

Calls 2

DimensionMethod · 0.45
EvaluateMethod · 0.45

Tested by

no test coverage detected