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

Function IfPos

fem/coefficient.cpp:6277–6287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6275 };
6276
6277 extern
6278 shared_ptr<CoefficientFunction> IfPos (shared_ptr<CoefficientFunction> cf_if,
6279 shared_ptr<CoefficientFunction> cf_then,
6280 shared_ptr<CoefficientFunction> cf_else)
6281 {
6282 if(cf_if->Dimension() != 1)
6283 throw Exception("Dimension of first component in IfPos must be 1!");
6284 if (cf_then->IsZeroCF() && cf_else->IsZeroCF())
6285 return cf_then;
6286 return make_shared<IfPosCoefficientFunction> (cf_if, cf_then, cf_else);
6287 }
6288
6289
6290class VectorialCoefficientFunction : public T_CoefficientFunction<VectorialCoefficientFunction>

Callers 15

T_EvaluateMethod · 0.85
DiffMethod · 0.85
DiffJacobiMethod · 0.85
TestSIMDFunction · 0.85
signfctFunction · 0.85
test_diffFunction · 0.85
test_convection1d_dgFunction · 0.85
GetFormsFunction · 0.85
mpi_timeDG.pyFile · 0.85

Calls 2

DimensionMethod · 0.45
IsZeroCFMethod · 0.45

Tested by 6

TestSIMDFunction · 0.68
signfctFunction · 0.68
test_diffFunction · 0.68
test_convection1d_dgFunction · 0.68
GetFormsFunction · 0.68