PyTrilinos  Development
 All Classes Functions
Public Member Functions | Public Attributes
PyTrilinos.EpetraExt.XMLWriter Class Reference
Inheritance diagram for PyTrilinos.EpetraExt.XMLWriter:
Inheritance graph
[legend]
Collaboration diagram for PyTrilinos.EpetraExt.XMLWriter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def Create
def Close
def Write

Public Attributes

 this

Detailed Description

class XMLWriter: A class for writing Trilinos objects to XML files.

Class EpetraExt::XMLWriter writes several Trilinos objects in an XML-
compatible format. The list of supported objects contains: Epetra_Map;

Epetra_MultiVector;

Epetra_CrsGraph;

Epetra_CrsMatrix;

Epetra_RowMatrix;

Teuchos::ParameterList.

All objects can be read and written, with the std::exception of
Epetra_RowMatrix objects, that can only be written to files.

An example of usage is reported in file
epetraext/example/inout/XML_IO.cpp.

Writing objects goes as follows. Let Map, Matrix, LHS and RHS an
Epetra_Map, Epetra_CrsMatrix, and two Epetra_MultiVector's,
respectively. First, we define an XMLWriter object and we open the
file using MyProblem label: Writing objects simply goes as A
Teuchos::ParameterList (List), a std::string, and a
std::vector<std::string> can be written as Finally, we close the file
Note that only processor 0 writes the Teuchos::ParameterList,
std::string, and std::vector<std::string>.

The written file is as follows:

This class requires Teuchos to be configured with the option --enable-
teuchos-expat.

Marzio Sala, D-INFK/ETHZ

C++ includes: EpetraExt_XMLWriter.h 

Constructor & Destructor Documentation

def PyTrilinos.EpetraExt.XMLWriter.__init__ (   self,
  args 
)
__init__(EpetraExt::XMLWriter self, Comm Comm, std::string const & FileName) -> XMLWriter

EpetraExt::XMLWriter::XMLWriter(const Epetra_Comm &Comm, const
std::string &FileName)

ctor 

Member Function Documentation

def PyTrilinos.EpetraExt.XMLWriter.Close (   self,
  args 
)
Close(XMLWriter self)

void
EpetraExt::XMLWriter::Close()

Closes the file. No Write operations can follow. 
def PyTrilinos.EpetraExt.XMLWriter.Create (   self,
  args 
)
Create(XMLWriter self, std::string const & Label)

void
EpetraExt::XMLWriter::Create(const std::string &Label)

Creates the file, giving Label to the whole object. 
def PyTrilinos.EpetraExt.XMLWriter.Write (   self,
  args 
)
Write(XMLWriter self, std::string const & Label, Map Map)
Write(XMLWriter self, std::string const & Label, RowMatrix Matrix)
Write(XMLWriter self, std::string const & Label, Epetra_MultiVector MultiVector)
Write(XMLWriter self, std::string const & Label, std::vector< std::string,std::allocator< std::string > > const & Content)
Write(XMLWriter self, std::string const & Label, std::string const & Text)
Write(XMLWriter self, std::string const & Label, ParameterList List)

void
EpetraExt::XMLWriter::Write(const std::string &Label,
Teuchos::ParameterList &List)

Writes a Teuchos::ParameterList using label Label. 

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