![]() |
Chaste Commit::333233612e3dcc941d260418acd7b5ccdc30390e
|
#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 |
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 |
Standard setup method for PETSc.
Definition at line 59 of file PetscSetupAndFinalize.hpp.
References PetscSetupUtils::CommonSetup().
|
inline |
Clean up PETSc on the master process after running tests.
Definition at line 95 of file FakePetscSetup.hpp.
References PetscSetupUtils::CommonFinalize().
|
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().