Public Member Functions | |
def | __init__ |
def | Create |
def | Close |
def | Write |
def | __init__ |
def | Create |
def | Close |
def | Write |
Public Attributes | |
this |
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
def PyTrilinos::EpetraExt::XMLWriter::__init__ | ( | self, | ||
args | ||||
) |
__init__(self, Comm Comm, string FileName) -> XMLWriter EpetraExt::XMLWriter::XMLWriter(const Epetra_Comm &Comm, const std::string &FileName) ctor
def PyTrilinos::EpetraExt::XMLWriter::__init__ | ( | self, | ||
args | ||||
) |
__init__(self, Comm Comm, string FileName) -> XMLWriter EpetraExt::XMLWriter::XMLWriter(const Epetra_Comm &Comm, const std::string &FileName) ctor
def PyTrilinos::EpetraExt::XMLWriter::Close | ( | self, | ||
args | ||||
) |
Close(self) void EpetraExt::XMLWriter::Close() Closes the file. No Write operations can follow.
def PyTrilinos::EpetraExt::XMLWriter::Close | ( | self, | ||
args | ||||
) |
Close(self) void EpetraExt::XMLWriter::Close() Closes the file. No Write operations can follow.
def PyTrilinos::EpetraExt::XMLWriter::Create | ( | self, | ||
args | ||||
) |
Create(self, string Label) void EpetraExt::XMLWriter::Create(const std::string &Label) Creates the file, giving Label to the whole object.
def PyTrilinos::EpetraExt::XMLWriter::Create | ( | self, | ||
args | ||||
) |
Create(self, string 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(self, string Label, Map Map) Write(self, string Label, RowMatrix Matrix) Write(self, string Label, Epetra_MultiVector MultiVector) Write(self, string Label, std::vector<(std::string,std::allocator<(std::string)>)> Content) Write(self, string Label, string Text) Write(self, string Label, ParameterList List) void EpetraExt::XMLWriter::Write(const std::string &Label, Teuchos::ParameterList &List) Writes a Teuchos::ParameterList using label Label.
def PyTrilinos::EpetraExt::XMLWriter::Write | ( | self, | ||
args | ||||
) |
Write(self, string Label, Map Map) Write(self, string Label, RowMatrix Matrix) Write(self, string Label, Epetra_MultiVector MultiVector) Write(self, string Label, std::vector<(std::string,std::allocator<(std::string)>)> Content) Write(self, string Label, string Text) Write(self, string Label, ParameterList List) void EpetraExt::XMLWriter::Write(const std::string &Label, Teuchos::ParameterList &List) Writes a Teuchos::ParameterList using label Label.