PetscSetup Class Reference

#include <PetscSetupAndFinalize.hpp>

Inheritance diagram for PetscSetup:

Inheritance graph
[legend]
Collaboration diagram for PetscSetup:

Collaboration graph
[legend]

List of all members.

Public Member Functions

bool setUpWorld ()
bool tearDownWorld ()


Detailed Description

This file is designed to be included by any test suites that use PETSc. It controls the PETSc initialisation and finalisation.

Currently it will dump info on any non-freed vectors or matrices on finalisation.

Definition at line 52 of file PetscSetupAndFinalize.hpp.


Member Function Documentation

bool PetscSetup::setUpWorld (  )  [inline]

Standard setup method for PETSc.

The cxxtest_argc and cxxtest_argv variables are global, and filled in from the arguments passed to the cxxtest test suite runner.

Definition at line 56 of file PetscSetupAndFinalize.hpp.

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

bool PetscSetup::tearDownWorld (  )  [inline]

Clean up PETSc after running all tests.

Definition at line 75 of file PetscSetupAndFinalize.hpp.


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

Generated on Wed Mar 18 12:52:47 2009 for Chaste by  doxygen 1.5.5