Public Member Functions | Private Attributes | List of all members
oomph::DistributionPredicate Class Reference

Class to allow sorting of column indices in conversion to epetra matrix. More...

Public Member Functions

 DistributionPredicate (const int &first_col, const int &ncol_local)
 Constructor: Pass number of first column and the number of local columns. More...
 
bool operator() (const int &col)
 Comparison operator: is column col in the range between (including) First_col and Last_col. More...
 

Private Attributes

int First_col
 First column held locally. More...
 
int Last_col
 Last colum held locally. More...
 

Detailed Description

Class to allow sorting of column indices in conversion to epetra matrix.

Definition at line 440 of file trilinos_helpers.cc.

Constructor & Destructor Documentation

oomph::DistributionPredicate::DistributionPredicate ( const int &  first_col,
const int &  ncol_local 
)
inline

Constructor: Pass number of first column and the number of local columns.

Definition at line 445 of file trilinos_helpers.cc.

Member Function Documentation

bool oomph::DistributionPredicate::operator() ( const int &  col)
inline

Comparison operator: is column col in the range between (including) First_col and Last_col.

Definition at line 450 of file trilinos_helpers.cc.

References First_col, and Last_col.

Member Data Documentation

int oomph::DistributionPredicate::First_col
private

First column held locally.

Definition at line 465 of file trilinos_helpers.cc.

Referenced by operator()().

int oomph::DistributionPredicate::Last_col
private

Last colum held locally.

Definition at line 468 of file trilinos_helpers.cc.

Referenced by operator()().


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