Chaste
Release::2017.1
|
#include <FakePetscSetup.hpp>
Public Member Functions | |
bool | setUpWorld () |
bool | tearDownWorld () |
bool | setUpWorld () |
bool | tearDownWorld () |
This file is designed to be included by any test suites that DO NOT use PETSc. It does the PETSc initialisation and finalisation at the top of a test suite, in order to make sure that only one process is left to run the actual tests.
This file is designed to be included by any test suites that use PETSc. It controls the PETSc initialisation and finalisation.
Definition at line 55 of file FakePetscSetup.hpp.
|
inline |
Standard setup method for PETSc.
Definition at line 59 of file PetscSetupAndFinalize.hpp.
References PetscSetupUtils::CommonSetup().
|
inline |
Run the standard setup method for PETSc, but then fake being a single process. Only the process with PETSc rank zero continues beyond setUpWorld(); the others exit gracefully.
Note that we need to keep MPI initialized so we can use MPI_Wtime etc.
Definition at line 68 of file FakePetscSetup.hpp.
References PetscSetupUtils::CommonSetup(), and PetscSetupUtils::ResetStatusCache().
|
inline |
Clean up PETSc after running all tests.
Causes memory failure (and seg fault) in PETSc 3.2 with MPICH-1
Definition at line 68 of file PetscSetupAndFinalize.hpp.
References PetscSetupUtils::CommonFinalize().
|
inline |
Clean up PETSc on the master process after running tests.
Definition at line 95 of file FakePetscSetup.hpp.
References PetscSetupUtils::CommonFinalize().