| 12 | namespace |
| 13 | { |
| 14 | void 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 | |
| 27 | TEST_CASE("Initialise PETSc", "[petsc_init]") { CHECK_NOTHROW(init_petsc()); } |
no outgoing calls
no test coverage detected