Zoltan2
Public Types | Public Member Functions | Static Public Member Functions | List of all members
UserInputForTests Class Reference

#include <UserInputForTests.hpp>

Public Types

typedef Tpetra::CrsMatrix< zscalar_t, zlno_t, zgno_t, znode_ttcrsMatrix_t
 
typedef Tpetra::CrsGraph< zlno_t, zgno_t, znode_ttcrsGraph_t
 
typedef Tpetra::Vector< zscalar_t, zlno_t, zgno_t, znode_ttVector_t
 
typedef Tpetra::MultiVector< zscalar_t, zlno_t, zgno_t, znode_ttMVector_t
 
typedef Xpetra::CrsMatrix< zscalar_t, zlno_t, zgno_t, znode_txcrsMatrix_t
 
typedef Xpetra::CrsGraph< zlno_t, zgno_t, znode_txcrsGraph_t
 
typedef Xpetra::Vector< zscalar_t, zlno_t, zgno_t, znode_txVector_t
 
typedef Xpetra::MultiVector< zscalar_t, zlno_t, zgno_t, znode_txMVector_t
 
typedef Tpetra::Map< zlno_t, zgno_t, znode_tmap_t
 
typedef Tpetra::Export< zlno_t, zgno_t, znode_texport_t
 
typedef Tpetra::Import< zlno_t, zgno_t, znode_timport_t
 
typedef map_t::node_type default_znode_t
 
typedef GeometricGen::GeometricGenerator< zscalar_t, zlno_t, zgno_t, znode_tgeometricgen_t
 

Public Member Functions

 UserInputForTests (string path, string testData, const RCP< const Comm< int > > &c, bool debugInfo=false, bool distributeInput=true)
 Constructor that reads in a matrix/graph from disk. More...
 
 UserInputForTests (int x, int y, int z, string matrixType, const RCP< const Comm< int > > &c, bool debugInfo=false, bool distributeInput=true)
 Constructor that generates an arbitrary sized sparse matrix. More...
 
 UserInputForTests (const ParameterList &pList, const RCP< const Comm< int > > &c)
 Constructor that can generate a sp matrix or read a matrix/graph file defined in an input parameter list. More...
 
RCP< tMVector_tgetUICoordinates ()
 
RCP< tMVector_tgetUIWeights ()
 
RCP< tMVector_tgetUIEdgeWeights ()
 
RCP< tcrsMatrix_tgetUITpetraCrsMatrix ()
 
RCP< tcrsGraph_tgetUITpetraCrsGraph ()
 
RCP< tVector_tgetUITpetraVector ()
 
RCP< tMVector_tgetUITpetraMultiVector (int nvec)
 
RCP< xcrsMatrix_tgetUIXpetraCrsMatrix ()
 
RCP< xcrsGraph_tgetUIXpetraCrsGraph ()
 
RCP< xVector_tgetUIXpetraVector ()
 
RCP< xMVector_tgetUIXpetraMultiVector (int nvec)
 
PamgenMeshgetPamGenMesh ()
 
RCP< Epetra_CrsGraph > getUIEpetraCrsGraph ()
 
RCP< Epetra_CrsMatrix > getUIEpetraCrsMatrix ()
 
RCP< Epetra_Vector > getUIEpetraVector ()
 
RCP< Epetra_MultiVector > getUIEpetraMultiVector (int nvec)
 
bool hasInput ()
 
bool hasInputDataType (const string &input_type)
 
bool hasUICoordinates ()
 
bool hasUIWeights ()
 
bool hasUIEdgeWeights ()
 
bool hasUITpetraCrsMatrix ()
 
bool hasUITpetraCrsGraph ()
 
bool hasUITpetraVector ()
 
bool hasUITpetraMultiVector ()
 
bool hasUIXpetraCrsMatrix ()
 
bool hasUIXpetraCrsGraph ()
 
bool hasUIXpetraVector ()
 
bool hasUIXpetraMultiVector ()
 
bool hasPamgenMesh ()
 
bool hasUIEpetraCrsGraph ()
 
bool hasUIEpetraCrsMatrix ()
 
bool hasUIEpetraVector ()
 
bool hasUIEpetraMultiVector ()
 

Static Public Member Functions

static void getUIRandomData (unsigned int seed, zlno_t length, zscalar_t min, zscalar_t max, ArrayView< ArrayRCP< zscalar_t > > data)
 Generate lists of random scalars. More...
 

Detailed Description

Definition at line 129 of file UserInputForTests.hpp.

Member Typedef Documentation

Definition at line 133 of file UserInputForTests.hpp.

typedef Tpetra::CrsGraph<zlno_t, zgno_t, znode_t> UserInputForTests::tcrsGraph_t

Definition at line 134 of file UserInputForTests.hpp.

Definition at line 135 of file UserInputForTests.hpp.

typedef Tpetra::MultiVector<zscalar_t, zlno_t, zgno_t, znode_t> UserInputForTests::tMVector_t

Definition at line 136 of file UserInputForTests.hpp.

Definition at line 138 of file UserInputForTests.hpp.

typedef Xpetra::CrsGraph<zlno_t, zgno_t, znode_t> UserInputForTests::xcrsGraph_t

Definition at line 139 of file UserInputForTests.hpp.

Definition at line 140 of file UserInputForTests.hpp.

typedef Xpetra::MultiVector<zscalar_t, zlno_t, zgno_t, znode_t> UserInputForTests::xMVector_t

Definition at line 141 of file UserInputForTests.hpp.

Definition at line 143 of file UserInputForTests.hpp.

typedef Tpetra::Export<zlno_t, zgno_t, znode_t> UserInputForTests::export_t

Definition at line 144 of file UserInputForTests.hpp.

typedef Tpetra::Import<zlno_t, zgno_t, znode_t> UserInputForTests::import_t

Definition at line 145 of file UserInputForTests.hpp.

typedef map_t::node_type UserInputForTests::default_znode_t

Definition at line 146 of file UserInputForTests.hpp.

Definition at line 148 of file UserInputForTests.hpp.

Constructor & Destructor Documentation

UserInputForTests::UserInputForTests ( string  path,
string  testData,
const RCP< const Comm< int > > &  c,
bool  debugInfo = false,
bool  distributeInput = true 
)

Constructor that reads in a matrix/graph from disk.

Parameters
pathis the path to the test data. In the case of Zoltan2 test data it is the path to the "data" directory. In the case of Zoltan1 test data, it is the path to the "test" directory.
testDatais the root name of the data file or files of interest.
cis the communicator for the processes that share the data.
debugInfoif true process zero will print out status.
distributeInputif true, initial data will be distributed across processes. Currently distributeInput=false is supported only for Zoltan input, not MatrixMarket files.

For example, if path is the path to the Zoltan1 test directory and testData is brack2_3, then we'll read in ch_brack2_3/brack2_3.graph and ch_brack2_3/brack2_3.coords.

Definition at line 388 of file UserInputForTests.hpp.

UserInputForTests::UserInputForTests ( int  x,
int  y,
int  z,
string  matrixType,
const RCP< const Comm< int > > &  c,
bool  debugInfo = false,
bool  distributeInput = true 
)

Constructor that generates an arbitrary sized sparse matrix.

Parameters
xthe x dimension of the mesh that generates the matrix.
ythe y dimension of the mesh that generates the matrix.
zthe z dimension of the mesh that generates the matrix.
problemTypethe type of problem that will generate a sparse matrix from the mesh. If the problemType is empty we'll pick a default.
cis the communicator for the processes that share the data.
debugInfoif true process zero will print out status.

Problems can be "Laplace1D", "Laplace2D", "Star2D", "BigStar2D", "Laplace3D", "Brick3D" and "Identity". See Galeri::Xpetra::BuildProblem() for more information about problem types.

Definition at line 413 of file UserInputForTests.hpp.

UserInputForTests::UserInputForTests ( const ParameterList &  pList,
const RCP< const Comm< int > > &  c 
)

Constructor that can generate a sp matrix or read a matrix/graph file defined in an input parameter list.

Parameters
pListthe parameter list containing input options
problemTypethe type of problem that will generate a sparse matrix from the mesh. If the problemType is empty we'll pick a default.
cis the communicator for the processes that share the data.
debugInfoif true process zero will print out status.

Problems can be "Laplace1D", "Laplace2D", "Star2D", "BigStar2D", "Laplace3D", "Brick3D" and "Identity". See Galeri::Xpetra::BuildProblem() for more information about problem types.

default behavior

Definition at line 450 of file UserInputForTests.hpp.

Member Function Documentation

void UserInputForTests::getUIRandomData ( unsigned int  seed,
zlno_t  length,
zscalar_t  min,
zscalar_t  max,
ArrayView< ArrayRCP< zscalar_t > >  data 
)
static

Generate lists of random scalars.

Definition at line 827 of file UserInputForTests.hpp.

RCP< UserInputForTests::tMVector_t > UserInputForTests::getUICoordinates ( )

Definition at line 544 of file UserInputForTests.hpp.

RCP< UserInputForTests::tMVector_t > UserInputForTests::getUIWeights ( )

Definition at line 551 of file UserInputForTests.hpp.

RCP< UserInputForTests::tMVector_t > UserInputForTests::getUIEdgeWeights ( )

Definition at line 556 of file UserInputForTests.hpp.

RCP< UserInputForTests::tcrsMatrix_t > UserInputForTests::getUITpetraCrsMatrix ( )

Definition at line 561 of file UserInputForTests.hpp.

RCP< UserInputForTests::tcrsGraph_t > UserInputForTests::getUITpetraCrsGraph ( )

Definition at line 568 of file UserInputForTests.hpp.

RCP< UserInputForTests::tVector_t > UserInputForTests::getUITpetraVector ( )

Definition at line 575 of file UserInputForTests.hpp.

RCP< UserInputForTests::tMVector_t > UserInputForTests::getUITpetraMultiVector ( int  nvec)

Definition at line 583 of file UserInputForTests.hpp.

RCP< UserInputForTests::xcrsMatrix_t > UserInputForTests::getUIXpetraCrsMatrix ( )

Definition at line 591 of file UserInputForTests.hpp.

RCP< UserInputForTests::xcrsGraph_t > UserInputForTests::getUIXpetraCrsGraph ( )

Definition at line 598 of file UserInputForTests.hpp.

RCP< UserInputForTests::xVector_t > UserInputForTests::getUIXpetraVector ( )

Definition at line 605 of file UserInputForTests.hpp.

RCP< UserInputForTests::xMVector_t > UserInputForTests::getUIXpetraMultiVector ( int  nvec)

Definition at line 610 of file UserInputForTests.hpp.

PamgenMesh* UserInputForTests::getPamGenMesh ( )
inline

Definition at line 239 of file UserInputForTests.hpp.

RCP< Epetra_CrsGraph > UserInputForTests::getUIEpetraCrsGraph ( )

Definition at line 617 of file UserInputForTests.hpp.

RCP< Epetra_CrsMatrix > UserInputForTests::getUIEpetraCrsMatrix ( )

Definition at line 655 of file UserInputForTests.hpp.

RCP< Epetra_Vector > UserInputForTests::getUIEpetraVector ( )

Definition at line 684 of file UserInputForTests.hpp.

RCP< Epetra_MultiVector > UserInputForTests::getUIEpetraMultiVector ( int  nvec)

Definition at line 692 of file UserInputForTests.hpp.

bool UserInputForTests::hasInput ( )

Definition at line 702 of file UserInputForTests.hpp.

bool UserInputForTests::hasInputDataType ( const string &  input_type)

Definition at line 711 of file UserInputForTests.hpp.

bool UserInputForTests::hasUICoordinates ( )

Definition at line 745 of file UserInputForTests.hpp.

bool UserInputForTests::hasUIWeights ( )

Definition at line 750 of file UserInputForTests.hpp.

bool UserInputForTests::hasUIEdgeWeights ( )

Definition at line 755 of file UserInputForTests.hpp.

bool UserInputForTests::hasUITpetraCrsMatrix ( )

Definition at line 760 of file UserInputForTests.hpp.

bool UserInputForTests::hasUITpetraCrsGraph ( )

Definition at line 765 of file UserInputForTests.hpp.

bool UserInputForTests::hasUITpetraVector ( )

Definition at line 770 of file UserInputForTests.hpp.

bool UserInputForTests::hasUITpetraMultiVector ( )

Definition at line 775 of file UserInputForTests.hpp.

bool UserInputForTests::hasUIXpetraCrsMatrix ( )

Definition at line 780 of file UserInputForTests.hpp.

bool UserInputForTests::hasUIXpetraCrsGraph ( )

Definition at line 785 of file UserInputForTests.hpp.

bool UserInputForTests::hasUIXpetraVector ( )

Definition at line 790 of file UserInputForTests.hpp.

bool UserInputForTests::hasUIXpetraMultiVector ( )

Definition at line 795 of file UserInputForTests.hpp.

bool UserInputForTests::hasPamgenMesh ( )

Definition at line 800 of file UserInputForTests.hpp.

bool UserInputForTests::hasUIEpetraCrsGraph ( )

Definition at line 806 of file UserInputForTests.hpp.

bool UserInputForTests::hasUIEpetraCrsMatrix ( )

Definition at line 811 of file UserInputForTests.hpp.

bool UserInputForTests::hasUIEpetraVector ( )

Definition at line 816 of file UserInputForTests.hpp.

bool UserInputForTests::hasUIEpetraMultiVector ( )

Definition at line 821 of file UserInputForTests.hpp.


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