Skip to content
Snippets Groups Projects
Commit 59dc36d3 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

fix previous commit

parent 5fe49941
No related branches found
No related tags found
No related merge requests found
...@@ -44,12 +44,13 @@ ...@@ -44,12 +44,13 @@
template <class scalar> template <class scalar>
class linearSystemPETSc : public linearSystem<scalar> { class linearSystemPETSc : public linearSystem<scalar> {
protected:
int _blockSize; // for block Matrix int _blockSize; // for block Matrix
bool _isAllocated, _kspAllocated; bool _isAllocated, _kspAllocated;
Mat _a; Mat _a;
Vec _b, _x; Vec _b, _x;
KSP _ksp; KSP _ksp;
void _try(int ierr) const { CHKERRABORT(PETSC_COMM_WORLD, ierr); } static void _try(int ierr) { CHKERRABORT(PETSC_COMM_WORLD, ierr); }
void _kspCreate() { void _kspCreate() {
_try(KSPCreate(PETSC_COMM_WORLD, &_ksp)); _try(KSPCreate(PETSC_COMM_WORLD, &_ksp));
PC pc; PC pc;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment