Chaste  Release::3.4
PetscSetupUtils Class Reference

#include <PetscSetupUtils.hpp>

+ Collaboration diagram for PetscSetupUtils:

Static Public Member Functions

static void CommonSetup ()
 
static void InitialisePetsc ()
 
static void ResetStatusCache ()
 
static void CommonFinalize ()
 

Detailed Description

Common code for setting up and tearing down tests. Used by PetscSetupAndFinalize.hpp and FakePetscSetup.hpp

Definition at line 43 of file PetscSetupUtils.hpp.

Member Function Documentation

void PetscSetupUtils::CommonFinalize ( )
static

The global finalize (prints citations).

Definition at line 163 of file PetscSetupUtils.cpp.

References Citations::Print().

Referenced by ExecutableSupport::FinalizePetsc(), and PetscSetup::tearDownWorld().

void PetscSetupUtils::CommonSetup ( )
static

The global setup for Chaste tests.

Definition at line 127 of file PetscSetupUtils.cpp.

References ChasteSourceRootDir(), EXPECT0, InitialisePetsc(), and Citations::Register().

Referenced by PetscSetup::setUpWorld().

void PetscSetupUtils::InitialisePetsc ( )
static

Just initialise PETSc without performing the rest of the common setup.

Definition at line 119 of file PetscSetupUtils.cpp.

References CommandLineArguments::Instance(), CommandLineArguments::p_argc, and CommandLineArguments::p_argv.

Referenced by CommonSetup().

void PetscSetupUtils::ResetStatusCache ( )
static

Call PetscTools::ResetCache(). Used by FakePetscSetup.hpp to ensure the cache doesn't reflect being run in parallel.

Definition at line 169 of file PetscSetupUtils.cpp.

References PetscTools::ResetCache().

Referenced by PetscSetup::setUpWorld().


The documentation for this class was generated from the following files: