12 #ifdef BUILD_WITH_PETSC 20 #ifndef DENDRO_5_0_MATRECORD_H 21 #define DENDRO_5_0_MATRECORD_H 30 unsigned int m_uiRowID;
32 unsigned int m_uiColID;
34 unsigned int m_uiRowDim;
36 unsigned int m_uiColDim;
38 #ifdef BUILD_WITH_PETSC 52 m_uiRowID = m_uiColID = m_uiRowDim = m_uiColDim =
static_cast<unsigned int>(-1);
57 inline unsigned int getRowID()
const {
return m_uiRowID;}
59 inline unsigned int getColID()
const {
return m_uiColID;}
61 inline unsigned int getRowDim()
const {
return m_uiRowDim;}
63 inline unsigned int getColDim()
const {
return m_uiColDim;}
66 inline void setRowID(
unsigned int rowID) {m_uiRowID=rowID;}
69 inline void setColID(
unsigned int colID) {m_uiColID=colID;}
72 inline void setRowDim(
unsigned int rowDim) {m_uiRowDim=rowDim;}
75 inline void setColDim(
unsigned int colDim) {m_uiColDim=colDim;}
78 #ifdef BUILD_WITH_PETSC 88 MatRecord(
unsigned int rowID,
unsigned int colID,
unsigned int rowDim,
unsigned int colDim, PetscScalar value)
103 inline PetscScalar
getMatVal()
const {
return m_uiVal;}
106 inline void setMatValue(PetscScalar value) {m_uiVal=value;}
118 MatRecord(
unsigned int rowID,
unsigned int colID,
unsigned int rowDim,
unsigned int colDim, DendroScalar value)
152 if(
this == (&other)) {
return *
this;}
169 return (!((*
this) == other));
176 }
else if(m_uiRowID == other.
getRowID()) {
179 }
else if(m_uiRowDim == other.
getRowDim()) {
182 }
else if (m_uiColID == other.
getColID()) {
185 }
else if(m_uiColDim == other.
getColDim()) {
203 return ( (!((*
this) < other)) && ((*
this) != other) );
208 return ( ((*
this) < other) || ((*
this) == other) );
213 return (!((*
this) < other)) ;
216 friend std::ostream & operator<< (std::ostream & os,
MatRecord const & re)
232 #endif //DENDRO_5_0_MATRECORD_H void setRowDim(unsigned int rowDim)
sets the rowDim value
Definition: matRecord.h:72
MatRecord(unsigned int rowID, unsigned int colID, unsigned int rowDim, unsigned int colDim, DendroScalar value)
Definition: matRecord.h:118
DendroScalar getMatVal() const
returns the entry value
Definition: matRecord.h:133
bool operator>(MatRecord const &other) const
Overloaded > Operator.
Definition: matRecord.h:202
Simple class to manage async data transfer in the ODA class.
Definition: asyncExchangeContex.h:16
bool operator<=(MatRecord const &other) const
Overloaded <= Operator.
Definition: matRecord.h:207
MatRecord & operator=(MatRecord const &other)
The assignment operator.
Definition: matRecord.h:151
MatRecord()
The default constructor.
Definition: matRecord.h:51
unsigned int getColDim() const
return the col dof
Definition: matRecord.h:63
unsigned int getRowDim() const
return the row dof
Definition: matRecord.h:61
void setColDim(unsigned int colDim)
sets the colDim value
Definition: matRecord.h:75
void setMatValue(DendroScalar value)
sets matrix value
Definition: matRecord.h:136
Definition: matRecord.h:26
bool operator!=(MatRecord const &other) const
Overloaded != Operator.
Definition: matRecord.h:168
MatRecord(const MatRecord &other)
The copy constructor.
Definition: matRecord.h:141
bool operator>=(MatRecord const &other) const
Overloaded >= Operator.
Definition: matRecord.h:212
void setRowID(unsigned int rowID)
sets the rowID value
Definition: matRecord.h:66
bool operator<(MatRecord const &other) const
Overloaded < Operator.
Definition: matRecord.h:173
bool operator==(MatRecord const &other) const
Overloaded == Operator.
Definition: matRecord.h:162
unsigned int getRowID() const
returns the row ID
Definition: matRecord.h:57
void setColID(unsigned int colID)
sets the rowID value
Definition: matRecord.h:69
unsigned int getColID() const
returns the col ID
Definition: matRecord.h:59