Zoltan2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Typedefs | Enumerations
UserInputForTests.hpp File Reference

Generate input for testing purposes. More...

#include "Zoltan2_TestHelpers.hpp"
#include <Zoltan2_XpetraTraits.hpp>
#include <Zoltan2_Typedefs.hpp>
#include <Tpetra_MultiVector.hpp>
#include <Tpetra_CrsMatrix.hpp>
#include <Tpetra_Map.hpp>
#include <Xpetra_Vector.hpp>
#include <Xpetra_CrsMatrix.hpp>
#include <Xpetra_CrsGraph.hpp>
#include <MatrixMarket_Tpetra.hpp>
#include <Tpetra_KokkosCompat_DefaultNode.hpp>
#include "GeometricGenerator.hpp"
#include <fstream>
#include <string>
#include <TpetraExt_MatrixMatrix_def.hpp>
#include "Zoltan2_PamgenMeshStructure.hpp"
Include dependency graph for UserInputForTests.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UserInputForTests
 

Typedefs

typedef enum USERINPUT_FILE_FORMATS USERINPUT_FILE_FORMATS
 A class that generates typical user input for testing. More...
 

Enumerations

enum  USERINPUT_FILE_FORMATS { MATRIX_MARKET, CHACO, GEOMGEN, PAMGEN }
 A class that generates typical user input for testing. More...
 

Detailed Description

Generate input for testing purposes.

Definition in file UserInputForTests.hpp.

Typedef Documentation

A class that generates typical user input for testing.

Given:

  • The name of matrix market file in the data directory, or
  • The name of a chaco file in the Zoltan1 test directory, or
  • x, y and z dimensions and a problem type

Retrieve the data in any of the following forms:

  • a Tpetra::CrsMatrix
  • a Tpetra::CrsGraph
  • a Xpetra::CrsMatrix
  • a Xpetra::CrsGraph
  • a Epetra_CrsMatrix (if built with double, int, int)
  • a Epetra_CrsGraph (if built with double, int, int)

Retrieve any of the these with the same map but with random data:

  • a Tpetra::Vector
  • a Tpetra::MultiVector
  • a Xpetra::Vector
  • a Xpetra::MultiVector

Coordinates and/or weights will be retrieved if they are found. They are provided in a Tpetra::MultiVector.

Random data can also be generated.

Todo:

for very large files, each process reads in part of the file

Zoltan1 mtx and mtxp files

Enumeration Type Documentation

A class that generates typical user input for testing.

Given:

  • The name of matrix market file in the data directory, or
  • The name of a chaco file in the Zoltan1 test directory, or
  • x, y and z dimensions and a problem type

Retrieve the data in any of the following forms:

  • a Tpetra::CrsMatrix
  • a Tpetra::CrsGraph
  • a Xpetra::CrsMatrix
  • a Xpetra::CrsGraph
  • a Epetra_CrsMatrix (if built with double, int, int)
  • a Epetra_CrsGraph (if built with double, int, int)

Retrieve any of the these with the same map but with random data:

  • a Tpetra::Vector
  • a Tpetra::MultiVector
  • a Xpetra::Vector
  • a Xpetra::MultiVector

Coordinates and/or weights will be retrieved if they are found. They are provided in a Tpetra::MultiVector.

Random data can also be generated.

Todo:

for very large files, each process reads in part of the file

Zoltan1 mtx and mtxp files

Enumerator
MATRIX_MARKET 
CHACO 
GEOMGEN 
PAMGEN 

Definition at line 88 of file UserInputForTests.hpp.