EpetraExt_BlockMapIn.cpp File Reference

#include "EpetraExt_BlockMapIn.h"
#include "Epetra_Comm.h"
#include "Epetra_Util.h"
#include "Epetra_BlockMap.h"
#include "Epetra_Map.h"
#include "Epetra_IntVector.h"
#include "Epetra_IntSerialDenseVector.h"
#include "Epetra_Import.h"
#include "EpetraExt_mmio.h"

Include dependency graph for EpetraExt_BlockMapIn.cpp:

Go to the source code of this file.

Namespaces

namespace  EpetraExt

Functions

int MatrixMarketFileToMap (const char *filename, const Epetra_Comm &comm, Epetra_Map *&map)
 Constructs an Epetra_BlockMap object from a Matrix Market format file.
int MatrixMarketFileToBlockMap (const char *filename, const Epetra_Comm &comm, Epetra_BlockMap *&map)
 Constructs an Epetra_BlockMap object from a Matrix Market format file.
int MatrixMarketFileToRowMap (const char *filename, const Epetra_Comm &comm, Epetra_BlockMap *&rowmap)
int MatrixMarketFileToBlockMaps (const char *filename, const Epetra_Comm &comm, Epetra_BlockMap *&rowmap, Epetra_BlockMap *&colmap, Epetra_BlockMap *&rangemap, Epetra_BlockMap *&domainmap)
 Constructs row,col,range and domain maps from a matrix-market matrix file.


Function Documentation

int EpetraExt::MatrixMarketFileToMap const char *  filename,
const Epetra_Comm comm,
Epetra_Map *&  map
 

Constructs an Epetra_BlockMap object from a Matrix Market format file.

This function constructs an Epetra_BlockMap or Epetra_Map object by reading a Matrix Market file. If the file was created using the EpetraExt::BlockMapOut functions, special information was encoded in the comment field of this map that allows for identical reproduction of the map, including distribution across processors and element size information. If the same of processors is being used to create the object as were used to write it, the object will be an exact reproduction of the original. Otherwise, a uniform distribution of the GIDs will be created.

The first column of the input file will must be the list of GIDs in the map. If the block map has non-uniform sizes, a second column must contain the element sizes.

Parameters:
filename (In) A filename, including path if desired. If a file with this name already exists, it will be deleted. On exit, this file will contained any requested header information followed by the map GIDs. A second column may be present if the BlockMap has nonuniform sizes.
comm (In) An Epetra_Comm object describing the parallel machine.
map (Out) An Epetra_Map object constructed from file contents.
Warning:
User must delete!!.
Returns:
Returns 0 if no error, -1 if any problems with file system, -2 if file contained nontrivial Epetra_BlockMap, 1 if number of processors differs from file creator.

Definition at line 41 of file EpetraExt_BlockMapIn.cpp.

int EpetraExt::MatrixMarketFileToBlockMap const char *  filename,
const Epetra_Comm comm,
Epetra_BlockMap *&  blockMap
 

Constructs an Epetra_BlockMap object from a Matrix Market format file.

This function constructs an Epetra_BlockMap or Epetra_Map object by reading a Matrix Market file. If the file was created using the EpetraExt::BlockMapOut functions, special information was encoded in the comment field of this map that allows for identical reproduction of the map, including distribution across processors and element size information. If the same of processors is being used to create the object as were used to write it, the object will be an exact reproduction of the original. Otherwise, a uniform distribution of the GIDs will be created.

The first column of the input file will must be the list of GIDs in the map. If the block map has non-uniform sizes, a second column must contain the element sizes.

Parameters:
filename (In) A filename, including path if desired. If a file with this name already exists, it will be deleted. On exit, this file will contained any requested header information followed by the map GIDs. A second column may be present if the BlockMap has nonuniform sizes.
comm (In) An Epetra_Comm object describing the parallel machine.
blockMap (Out) An Epetra_BlockMap object constructed from file contents.
Warning:
User must delete!!.
Returns:
Returns 0 if no error, -1 if any problems with file system, returns 1 if number of processors differs from file creator.

Definition at line 49 of file EpetraExt_BlockMapIn.cpp.

int MatrixMarketFileToRowMap const char *  filename,
const Epetra_Comm comm,
Epetra_BlockMap *&  rowmap
 

Definition at line 156 of file EpetraExt_BlockMapIn.cpp.

int EpetraExt::MatrixMarketFileToBlockMaps const char *  filename,
const Epetra_Comm comm,
Epetra_BlockMap *&  rowmap,
Epetra_BlockMap *&  colmap,
Epetra_BlockMap *&  rangemap,
Epetra_BlockMap *&  domainmap
 

Constructs row,col,range and domain maps from a matrix-market matrix file.

Definition at line 181 of file EpetraExt_BlockMapIn.cpp.


Generated on Thu Sep 18 12:31:44 2008 for EpetraExt by doxygen 1.3.9.1