
Public Member Functions | |
| FileIOChacoPartitioner (const std::string &filename, bool ignoreGhosts=false) | |
| virtual void | getAssignments (const Mesh &mesh, int np, Array< int > &assignments) const |
| void | writeGraph (const Mesh &mesh) const |
| void | runChaco (int np) const |
Private Member Functions | |
| bool | isEmptyLine (const std::string &x) const |
| bool | getNextLine (std::istream &is, std::string &line, Array< string > &tokens, char comment) const |
Private Attributes | |
| std::string | filename_ |
Definition at line 45 of file SundanceFileIOChacoPartitioner.hpp.
| FileIOChacoPartitioner::FileIOChacoPartitioner | ( | const std::string & | filename, | |
| bool | ignoreGhosts = false | |||
| ) |
Construct an empty mesh filter object
Definition at line 15 of file SundanceFileIOChacoPartitioner.cpp.
| void FileIOChacoPartitioner::getAssignments | ( | const Mesh & | mesh, | |
| int | np, | |||
| Array< int > & | assignments | |||
| ) | const [virtual] |
Implements Sundance::SerialPartitionerBase.
Definition at line 93 of file SundanceFileIOChacoPartitioner.cpp.
References filename_, getNextLine(), runChaco(), and writeGraph().
| bool FileIOChacoPartitioner::getNextLine | ( | std::istream & | is, | |
| std::string & | line, | |||
| Array< string > & | tokens, | |||
| char | comment | |||
| ) | const [private] |
Read the next non-empty, non-comment line from a stream
| is | the stream from which to get the line | |
| line | upon return, filled in with the line that was read | |
| tokens | array of space-separated tokens in the line | |
| comment | a character indicating that everything after it is a comment |
Definition at line 78 of file SundanceFileIOChacoPartitioner.cpp.
References isEmptyLine().
Referenced by getAssignments().
| bool FileIOChacoPartitioner::isEmptyLine | ( | const std::string & | x | ) | const [private] |
Determine whether a line is empty
Definition at line 73 of file SundanceFileIOChacoPartitioner.cpp.
Referenced by getNextLine().
| void FileIOChacoPartitioner::runChaco | ( | int | np | ) | const |
Definition at line 44 of file SundanceFileIOChacoPartitioner.cpp.
References filename_.
Referenced by getAssignments().
| void FileIOChacoPartitioner::writeGraph | ( | const Mesh & | mesh | ) | const |
Definition at line 20 of file SundanceFileIOChacoPartitioner.cpp.
References filename_, and Sundance::SerialPartitionerBase::getNeighbors().
Referenced by getAssignments().
std::string Sundance::FileIOChacoPartitioner::filename_ [private] |
Definition at line 82 of file SundanceFileIOChacoPartitioner.hpp.
Referenced by getAssignments(), runChaco(), and writeGraph().