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

Function init_petsc

cpp/test/common/sub_systems_manager.cpp:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace
13{
14void init_petsc()
15{
16 // Test user initialisation of PETSc
17 int argc = 0;
18 char** argv = nullptr;
19 PetscInitialize(&argc, &argv, nullptr, nullptr);
20
21 Vec x;
22 VecCreate(MPI_COMM_WORLD, &x);
23 VecDestroy(&x);
24}
25} // namespace
26
27TEST_CASE("Initialise PETSc", "[petsc_init]") { CHECK_NOTHROW(init_petsc()); }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected