MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / has_petsc4py

Function has_petsc4py

python/dolfinx/wrappers/common.cpp:40–47  ·  view source on GitHub ↗

Return true if DOLFINx is compiled with petsc4py

Source from the content-addressed store, hash-verified

38
39/// Return true if DOLFINx is compiled with petsc4py
40consteval bool has_petsc4py()
41{
42#ifdef HAS_PETSC4PY
43 return true;
44#else
45 return false;
46#endif
47}
48
49// Interface for dolfinx/common
50void common(nb::module_& m)

Callers 1

commonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected