EpetraExt_BlockMapOut.cpp File Reference

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

Include dependency graph for EpetraExt_BlockMapOut.cpp:

Go to the source code of this file.

Namespaces

namespace  EpetraExt

Functions

int BlockMapToMatrixMarketFile (const char *filename, const Epetra_BlockMap &map, const char *mapName, const char *mapDescription, bool writeHeader)
 Writes an Epetra_BlockMap or Epetra_Map object to a Matrix Market format file.
int BlockMapToHandle (FILE *handle, const Epetra_BlockMap &map)
 Writes an Epetra_BlockMap or Epetra_Map object to a file handle.
int writeBlockMap (FILE *handle, int length, const int *v1, const int *v2, bool doSizes)


Function Documentation

int EpetraExt::BlockMapToMatrixMarketFile const char *  filename,
const Epetra_BlockMap blockMap,
const char *  mapName = 0,
const char *  mapDescription = 0,
bool  writeHeader = true
 

Writes an Epetra_BlockMap or Epetra_Map object to a Matrix Market format file.

This function takes an Epetra_BlockMap or Epetra_Map object and writes it to the specified file. The map can be distributed or serial. The user can provide a strings containing the object name, a description, and specify that header information should or should not be printed to the file.

Special information is encoded in the comment field of this map that allows for identical reproduction of the map, including distribution across processors and element size information.

The first column of the output file will be the list of GIDs in the map. If the block map has non-uniform sizes, a second column will be generated containing 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.
blockMap (In) An Epetra_BlockMap Object containing the user map to be dumped to file.
mapName (In) A C-style string pointer to a name that will be stored in the comment field of the file. This is not a required argument. Note that it is possible to pass in the method A.Label().
mapDescription (In) A C-style string pointer to a map description that will be stored in the comment field of the file.
writeHeader (In) If true, the header will be written, otherwise only the map entries will be written.
Returns:
Returns 0 if no error, -1 if any problems with file system.

Definition at line 40 of file EpetraExt_BlockMapOut.cpp.

int EpetraExt::BlockMapToHandle FILE *  handle,
const Epetra_BlockMap blockMap
 

Writes an Epetra_BlockMap or Epetra_Map object to a file handle.

This function takes an Epetra_BlockMap or Epetra_Map object and writes it to the specified file handle.

Parameters:
handle (In) A C-style file handle, already opened. On exit, the file associated with this handle will have appended to it a row for each multivector row.
blockMap (In) An Epetra_BlockMap object containing the user object to be dumped to file.
Returns:
Returns 0 if no error, -1 if any problems with file system.

Definition at line 111 of file EpetraExt_BlockMapOut.cpp.

int EpetraExt::writeBlockMap FILE *  handle,
int  length,
const int *  v1,
const int *  v2,
bool  doSizes
 

Definition at line 173 of file EpetraExt_BlockMapOut.cpp.


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