Zoltan2
Loading...
Searching...
No Matches
UserInputForTests Class Reference

#include <UserInputForTests.hpp>

Public Types

typedef Tpetra::Map< zlno_t, zgno_t, znode_t > map_t
typedef Tpetra::Export< zlno_t, zgno_t, znode_t > export_t
typedef Tpetra::Import< zlno_t, zgno_t, znode_t > import_t
typedef map_t::node_type default_znode_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.
 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.
 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.
RCP< tMVector_t > getUICoordinates ()
RCP< tMVector_t > getUIWeights ()
RCP< tMVector_t > getUIEdgeWeights ()
RCP< tcrsMatrix_t > getUITpetraCrsMatrix ()
RCP< tcrsGraph_t > getUITpetraCrsGraph ()
RCP< tVector_t > getUITpetraVector ()
RCP< tMVector_t > getUITpetraMultiVector (int nvec)
RCP< xcrsMatrix_t > getUIXpetraCrsMatrix ()
RCP< xcrsGraph_t > getUIXpetraCrsGraph ()
RCP< xVector_t > getUIXpetraVector ()
RCP< xMVector_t > getUIXpetraMultiVector (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 ()

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.

Detailed Description

Definition at line 89 of file UserInputForTests.hpp.

Member Typedef Documentation

◆ map_t

Definition at line 93 of file UserInputForTests.hpp.

◆ export_t

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

Definition at line 94 of file UserInputForTests.hpp.

◆ import_t

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

Definition at line 95 of file UserInputForTests.hpp.

◆ default_znode_t

typedef map_t::node_type UserInputForTests::default_znode_t

Definition at line 96 of file UserInputForTests.hpp.

Constructor & Destructor Documentation

◆ UserInputForTests() [1/3]

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 326 of file UserInputForTests.hpp.

◆ UserInputForTests() [2/3]

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 344 of file UserInputForTests.hpp.

◆ UserInputForTests() [3/3]

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 374 of file UserInputForTests.hpp.

Member Function Documentation

◆ getUIRandomData()

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 626 of file UserInputForTests.hpp.

◆ getUICoordinates()

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

Definition at line 461 of file UserInputForTests.hpp.

◆ getUIWeights()

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

Definition at line 468 of file UserInputForTests.hpp.

◆ getUIEdgeWeights()

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

Definition at line 473 of file UserInputForTests.hpp.

◆ getUITpetraCrsMatrix()

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

Definition at line 478 of file UserInputForTests.hpp.

◆ getUITpetraCrsGraph()

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

Definition at line 485 of file UserInputForTests.hpp.

◆ getUITpetraVector()

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

Definition at line 492 of file UserInputForTests.hpp.

◆ getUITpetraMultiVector()

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

Definition at line 500 of file UserInputForTests.hpp.

◆ getUIXpetraCrsMatrix()

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

Definition at line 508 of file UserInputForTests.hpp.

◆ getUIXpetraCrsGraph()

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

Definition at line 515 of file UserInputForTests.hpp.

◆ getUIXpetraVector()

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

Definition at line 522 of file UserInputForTests.hpp.

◆ getUIXpetraMultiVector()

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

Definition at line 527 of file UserInputForTests.hpp.

◆ hasInput()

bool UserInputForTests::hasInput ( )

Definition at line 533 of file UserInputForTests.hpp.

◆ hasInputDataType()

bool UserInputForTests::hasInputDataType ( const string & input_type)

Definition at line 542 of file UserInputForTests.hpp.

◆ hasUICoordinates()

bool UserInputForTests::hasUICoordinates ( )

Definition at line 566 of file UserInputForTests.hpp.

◆ hasUIWeights()

bool UserInputForTests::hasUIWeights ( )

Definition at line 571 of file UserInputForTests.hpp.

◆ hasUIEdgeWeights()

bool UserInputForTests::hasUIEdgeWeights ( )

Definition at line 576 of file UserInputForTests.hpp.

◆ hasUITpetraCrsMatrix()

bool UserInputForTests::hasUITpetraCrsMatrix ( )

Definition at line 581 of file UserInputForTests.hpp.

◆ hasUITpetraCrsGraph()

bool UserInputForTests::hasUITpetraCrsGraph ( )

Definition at line 586 of file UserInputForTests.hpp.

◆ hasUITpetraVector()

bool UserInputForTests::hasUITpetraVector ( )

Definition at line 591 of file UserInputForTests.hpp.

◆ hasUITpetraMultiVector()

bool UserInputForTests::hasUITpetraMultiVector ( )

Definition at line 596 of file UserInputForTests.hpp.

◆ hasUIXpetraCrsMatrix()

bool UserInputForTests::hasUIXpetraCrsMatrix ( )

Definition at line 601 of file UserInputForTests.hpp.

◆ hasUIXpetraCrsGraph()

bool UserInputForTests::hasUIXpetraCrsGraph ( )

Definition at line 606 of file UserInputForTests.hpp.

◆ hasUIXpetraVector()

bool UserInputForTests::hasUIXpetraVector ( )

Definition at line 611 of file UserInputForTests.hpp.

◆ hasUIXpetraMultiVector()

bool UserInputForTests::hasUIXpetraMultiVector ( )

Definition at line 616 of file UserInputForTests.hpp.

◆ hasPamgenMesh()

bool UserInputForTests::hasPamgenMesh ( )

Definition at line 621 of file UserInputForTests.hpp.


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