Commit 14bc3da4 authored by Chris Cantwell's avatar Chris Cantwell
Browse files

Updated PETSc classes.

parent f5788fc7
......@@ -39,6 +39,8 @@
#include "petscis.h"
#include "petscversion.h"
using namespace std;
namespace Nektar
{
namespace MultiRegions
......
......@@ -76,23 +76,23 @@ namespace Nektar
protected:
/// PETSc matrix object.
Mat m_matrix;
Mat m_matrix;
/// PETSc vector objects used for local storage.
Vec m_x, m_b, m_locVec;
Vec m_x, m_b, m_locVec;
/// KSP object that represents solver system.
KSP m_ksp;
KSP m_ksp;
/// PCShell for preconditioner.
PC m_pc;
PC m_pc;
/// Enumerator to select matrix multiplication type.
PETScMatMult m_matMult;
PETScMatMult m_matMult;
/// Reordering that takes universal IDs to a unique row in the PETSc
/// matrix. @see GlobalLinSysPETSc::CalculateReordering
vector<int> m_reorderedMap;
std::vector<int> m_reorderedMap;
/// PETSc scatter context that takes us between Nektar++ global
/// ordering and PETSc vector ordering.
VecScatter m_ctx;
VecScatter m_ctx;
/// Number of unique degrees of freedom on this process.
int m_nLocal;
int m_nLocal;
PreconditionerSharedPtr m_precon;
......
......@@ -39,6 +39,8 @@
#include "petscao.h"
#include "petscis.h"
using namespace std;
namespace Nektar
{
namespace MultiRegions
......
......@@ -39,6 +39,8 @@
#include <petscksp.h>
#include <petscmat.h>
using namespace std;
namespace Nektar
{
namespace MultiRegions
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment