|
ug4
|
Functions | |
| bool | AddMarkers (std::string filename, std::string markfilename) |
| bool | AddMarkers (string filename, string markfilename) |
| std::string | GetParallelName (std::string name) |
| std::string | GetParallelName (std::string name, const pcl::ProcessCommunicator &pc, bool bWriteHeader=true) |
| string | GetParallelName (string name, const pcl::ProcessCommunicator &pc, bool bWriteHeader) |
| template<typename T > | |
| std::string | GetParallelName (T &t, std::string name) |
| template<typename matrix_type > | |
| bool | ReadMatrix (std::string filename, matrix_type &matrix, std::vector< MathVector< 3 > > &grid, int &dimension) |
| template<typename vector_type > | |
| bool | ReadVector (std::string filename, vector_type &vec) |
| template<typename TPosition > | |
| bool | WriteGridHeader (std::ostream &f, const TPosition &positions, int dimension) |
| template<typename TPosition > | |
| bool | WriteGridHeader (std::ostream &f, const TPosition &positions, size_t N, int dimension) |
| bool | WriteMarkers (std::string markfilename, std::vector< bool > markers, float r, float g, float b, float alpha, int size) |
| bool | WriteMarkers (string markfilename, vector< bool > markers, float r, float g, float b, float alpha, int size) |
| template<typename Matrix_type , typename postype > | |
| void | WriteMatrix (std::ostream &file, const Matrix_type &A, postype *positions, int dimensions) |
| writes to a file in somewhat SparseMatrix-market format (for connection viewer) | |
| template<typename Matrix_type , typename postype > | |
| bool | WriteMatrix (std::string filename, const Matrix_type &A, const std::vector< postype > &positionsFrom, const std::vector< postype > &positionsTo, size_t dimensions) |
| template<typename Matrix_type , typename postype > | |
| void | WriteMatrix (std::string filename, const Matrix_type &A, postype *positions, int dimensions) |
| template<typename Matrix_type , typename postype > | |
| bool | WriteMatrixPar (std::string filename, const Matrix_type &A, const std::vector< postype > &positionsFrom, const std::vector< postype > &positionsTo, size_t dimensions) |
| template<typename Matrix_type , typename postype > | |
| void | WriteMatrixPar (std::string name, const Matrix_type &A, const postype *positions, int dimensions) |
| template<typename Matrix_type , typename Vector_type , typename postype > | |
| void | WriteVector (std::string filename, const Matrix_type &A, const Vector_type &v, postype *positions, int dimensions, const Vector_type *compareVec=NULL) |
| template<typename Vector_type , typename postype > | |
| void | WriteVector (std::string filename, const Vector_type &b, const postype *positions, int dimensions, const Vector_type *compareVec=NULL) |
| writes to a file in somewhat SparseMatrix-market format (for connection viewer) | |
| template<typename Matrix_type , typename Vector_type , typename postype > | |
| void | WriteVectorPar (std::string filename, const Matrix_type &A, const Vector_type &v, postype *positions, int dimensions, const Vector_type *compareVec=NULL) |
| template<typename Vector_type , typename postype > | |
| void | WriteVectorPar (std::string filename, const Vector_type &b, const postype *positions, int dimensions, const Vector_type *compareVec=NULL) |
Variables | |
| bool | g_parallelConnectionViewer =false |
| bool ug::ConnectionViewer::AddMarkers | ( | std::string | filename, |
| std::string | markfilename | ||
| ) |
| bool ug::ConnectionViewer::AddMarkers | ( | string | filename, |
| string | markfilename | ||
| ) |
|
inline |
References GetParallelName(), and name.
| std::string ug::ConnectionViewer::GetParallelName | ( | std::string | name, |
| const pcl::ProcessCommunicator & | pc, | ||
| bool | bWriteHeader = true |
||
| ) |
extends the filename (add p000X extension in parallel) and writes a parallel pvec/pmat "header" file
| string ug::ConnectionViewer::GetParallelName | ( | string | name, |
| const pcl::ProcessCommunicator & | pc, | ||
| bool | bWriteHeader | ||
| ) |
References pcl::ProcessCommunicator::get_proc_id(), name, pcl::NumProcs(), pcl::ProcRank(), pcl::ProcessCommunicator::size(), and UG_COND_THROW.
Referenced by GetParallelName(), GetParallelName(), ug::WriteAlgebraIndices(), WriteMatrixPar(), WriteMatrixPar(), WriteVector(), WriteVectorPar(), and WriteVectorPar().
|
inline |
References GetParallelName(), and name.
| bool ug::ConnectionViewer::ReadMatrix | ( | std::string | filename, |
| matrix_type & | matrix, | ||
| std::vector< MathVector< 3 > > & | grid, | ||
| int & | dimension | ||
| ) |
References PROGRESS_START, and PROGRESS_UPDATE.
| bool ug::ConnectionViewer::ReadVector | ( | std::string | filename, |
| vector_type & | vec | ||
| ) |
References p, PROGRESS_START, and PROGRESS_UPDATE.
| bool ug::ConnectionViewer::WriteGridHeader | ( | std::ostream & | f, |
| const TPosition & | positions, | ||
| int | dimension | ||
| ) |
References WriteGridHeader().
| bool ug::ConnectionViewer::WriteGridHeader | ( | std::ostream & | f, |
| const TPosition & | positions, | ||
| size_t | N, | ||
| int | dimension | ||
| ) |
Referenced by WriteGridHeader(), WriteMatrix(), WriteVector(), and WriteVector().
| bool ug::ConnectionViewer::WriteMarkers | ( | std::string | markfilename, |
| std::vector< bool > | markers, | ||
| float | r, | ||
| float | g, | ||
| float | b, | ||
| float | alpha, | ||
| int | size | ||
| ) |
| bool ug::ConnectionViewer::WriteMarkers | ( | string | markfilename, |
| vector< bool > | markers, | ||
| float | r, | ||
| float | g, | ||
| float | b, | ||
| float | alpha, | ||
| int | size | ||
| ) |
| void ug::ConnectionViewer::WriteMatrix | ( | std::ostream & | file, |
| const Matrix_type & | A, | ||
| postype * | positions, | ||
| int | dimensions | ||
| ) |
writes to a file in somewhat SparseMatrix-market format (for connection viewer)
| filename | Filename to write matrix to |
| A | SparseMatrix A. |
| positions | Positions, there has to be one position for each i in (0, ..., max(A.num_rows(), A.num_cols())). |
| dimensions | Dimension of positions |
References PROFILE_FUNC_GROUP, PROGRESS_START, PROGRESS_UPDATE, and WriteGridHeader().
Referenced by WriteMatrix(), WriteMatrixPar(), and WriteMatrixPar().
| bool ug::ConnectionViewer::WriteMatrix | ( | std::string | filename, |
| const Matrix_type & | A, | ||
| const std::vector< postype > & | positionsFrom, | ||
| const std::vector< postype > & | positionsTo, | ||
| size_t | dimensions | ||
| ) |
** this version can handle different from and to spaces
References CONNECTION_VIEWER_VERSION, PROFILE_FUNC_GROUP, PROGRESS_START, PROGRESS_UPDATE, and UG_LOG.
| void ug::ConnectionViewer::WriteMatrix | ( | std::string | filename, |
| const Matrix_type & | A, | ||
| postype * | positions, | ||
| int | dimensions | ||
| ) |
References WriteMatrix().
| bool ug::ConnectionViewer::WriteMatrixPar | ( | std::string | filename, |
| const Matrix_type & | A, | ||
| const std::vector< postype > & | positionsFrom, | ||
| const std::vector< postype > & | positionsTo, | ||
| size_t | dimensions | ||
| ) |
References GetParallelName(), and WriteMatrix().
| void ug::ConnectionViewer::WriteMatrixPar | ( | std::string | name, |
| const Matrix_type & | A, | ||
| const postype * | positions, | ||
| int | dimensions | ||
| ) |
References pcl::ParallelArchive::create_stringstream_file(), ug::FilenameWithoutExtension(), g_parallelConnectionViewer, pcl::ProcessCommunicator::get_proc_id(), ug::GetFilenameExtension(), GetParallelName(), ug::GetStringPrintf(), name, pcl::NumProcs(), pcl::ProcRank(), pcl::ProcessCommunicator::size(), and WriteMatrix().
Referenced by ug::OverlapWriter< TAlgebra >::write_dim_(), ug::GridFunctionDebugWriter< TDomain, TAlgebra >::write_matrix(), and ug::WriteMatrixToConnectionViewer().
| void ug::ConnectionViewer::WriteVector | ( | std::string | filename, |
| const Matrix_type & | A, | ||
| const Vector_type & | v, | ||
| postype * | positions, | ||
| int | dimensions, | ||
| const Vector_type * | compareVec = NULL |
||
| ) |
References GetParallelName(), PROFILE_FUNC_GROUP, PROGRESS_START, PROGRESS_UPDATE, UG_LOG, and WriteGridHeader().
| void ug::ConnectionViewer::WriteVector | ( | std::string | filename, |
| const Vector_type & | b, | ||
| const postype * | positions, | ||
| int | dimensions, | ||
| const Vector_type * | compareVec = NULL |
||
| ) |
writes to a file in somewhat SparseMatrix-market format (for connection viewer)
| filename | Filename to write matrix to |
| b | Vector |
| positions | Positions, there has to be one position for each i in (0, ..., max(A.num_rows(), A.num_cols())). |
| dimensions | Dimensions of Positions |
References PROFILE_FUNC_GROUP, and WriteGridHeader().
Referenced by WriteVectorPar(), and WriteVectorPar().
| void ug::ConnectionViewer::WriteVectorPar | ( | std::string | filename, |
| const Matrix_type & | A, | ||
| const Vector_type & | v, | ||
| postype * | positions, | ||
| int | dimensions, | ||
| const Vector_type * | compareVec = NULL |
||
| ) |
References GetParallelName(), and WriteVector().
| void ug::ConnectionViewer::WriteVectorPar | ( | std::string | filename, |
| const Vector_type & | b, | ||
| const postype * | positions, | ||
| int | dimensions, | ||
| const Vector_type * | compareVec = NULL |
||
| ) |
| bool ug::ConnectionViewer::g_parallelConnectionViewer =false |
Referenced by WriteMatrixPar().