4#ifndef SPARSELINEARSYSTEM_H
5#define SPARSELINEARSYSTEM_H
11#if defined(PETSC_Z) || defined(PETSC_D)
19 template <
typename _Type>
52 void factorise_petsc();
60 std::string m_version;
65#if defined(PETSC_Z) || defined(PETSC_D)
66 Vec m_petsc_x,m_petsc_B;
70 PetscMPIInt m_petsc_rank, m_petsc_size;
Specification for a templated DenseVector class – a dense, dynamic, vector object.
The collection of CppNoddy exceptions.
A matrix class that constructs a SPARSE matrix as an STL Vector of SparseVectors, inheriting from Mat...
An DenseVector class – a dense vector object.
A linear system class for vector right-hand sides.
void factorise()
Factorise the Ax=B system.
void solve()
Solve the sparse system.
void solve_using_factorisation()
Resolve the same system using the same factorisation.
void cleanup()
deallocates some objects
~SparseLinearSystem()
Destructor for a linear system object.
A matrix class that constructs a SPARSE matrix as a row major std::vector of SparseVectors.
A collection of OO numerical routines aimed at simple (typical) applied problems in continuum mechani...