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

Method Set

fem/coefficient.cpp:673–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671 }
672
673 void PlaceholderCoefficientFunction::Set(shared_ptr<CoefficientFunction> _cf)
674 {
675 if(Dimensions().Size() != _cf->Dimensions().Size())
676 throw Exception("Dimensions of function in PlaceholderCF must not change!");
677 for(auto i : Range(Dimensions()))
678 if(Dimensions()[i] != _cf->Dimensions()[i])
679 throw Exception("Dimensions of function in PlaceholderCF must not change!");
680 cf = _cf;
681 is_complex = cf->IsComplex();
682 }
683
684
685

Callers 15

GetAdditionalProxyMethod · 0.45
PrecomputeTraceMethod · 0.45
PrecomputeGradMethod · 0.45
SetAdditionalEvaluatorFunction · 0.45
AddMethod · 0.45
SetSliceFunction · 0.45
MakeGAMGPreconditionerFunction · 0.45
SolveMethod · 0.45
SolveMethod · 0.45
IntegrateMethod · 0.45

Calls 5

DimensionsFunction · 0.85
DimensionsMethod · 0.80
RangeFunction · 0.50
SizeMethod · 0.45
IsComplexMethod · 0.45

Tested by 15

test_mesh_size_cfFunction · 0.36
test_eval_curved_surfaceFunction · 0.36
test_gf_userdata_cacheFunction · 0.36
TestFunction · 0.36
TestCurvatureDiffOps2DFunction · 0.36
TestCurvatureDiffOps3DFunction · 0.36
_test_interpolationFunction · 0.36
test_convection1d_dgFunction · 0.36