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 430 of file trilinos_helpers.cc.

Constructor & Destructor Documentation

◆ DistributionPredicate()

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 434 of file trilinos_helpers.cc.

Member Function Documentation

◆ operator()()

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 441 of file trilinos_helpers.cc.

References First_col, and Last_col.

Member Data Documentation

◆ First_col

int oomph::DistributionPredicate::First_col
private

First column held locally.

Definition at line 455 of file trilinos_helpers.cc.

Referenced by operator()().

◆ Last_col

int oomph::DistributionPredicate::Last_col
private

Last colum held locally.

Definition at line 458 of file trilinos_helpers.cc.

Referenced by operator()().


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