ug4
|
Debug writer for connection viewer (based on algebraic information + vector positions only) More...
#include <algebra_debug_writer.h>
Public Types | |
typedef TAlgebra | algebra_type |
type of matrix More... | |
typedef IDebugWriter< TAlgebra > | base_type |
type of base More... | |
typedef algebra_type::matrix_type | matrix_type |
type of matrix More... | |
typedef algebra_type::vector_type | vector_type |
type of vector More... | |
Public Types inherited from ug::IDebugWriter< TAlgebra > | |
typedef TAlgebra | algebra_type |
type of algebra More... | |
typedef TAlgebra::matrix_type | matrix_type |
type of matrix More... | |
typedef TAlgebra::vector_type | vector_type |
type of vector More... | |
Public Types inherited from ug::IVectorDebugWriter< TAlgebra::vector_type > | |
typedef TAlgebra::vector_type | vector_type |
type of vector More... | |
Public Member Functions | |
AlgebraDebugWriter () | |
Constructor. More... | |
virtual void | write_matrix (const matrix_type &mat, const char *filename) |
write matrix More... | |
virtual void | write_vector (const vector_type &vec, const char *filename) |
write vector More... | |
Public Member Functions inherited from ug::IDebugWriter< TAlgebra > | |
virtual void | write_matrix (const matrix_type &mat, const char *name)=0 |
write matrix More... | |
virtual void | write_vector (const vector_type &vec, const char *name)=0 |
write vector More... | |
Public Member Functions inherited from ug::IVectorDebugWriter< TAlgebra::vector_type > | |
int | current_dimension () const |
returns the current dimension More... | |
void | enter_section (const char *secDir) |
enter a new debugging section More... | |
std::string | get_base_dir () |
SmartPtr< DebugWriterContext > | get_context () |
get the debugging writer context More... | |
ConstSmartPtr< DebugWriterContext > | get_context () const |
get the debugging writer context More... | |
int | get_dim () const |
get the dimensionality More... | |
const std::vector< MathVector< dim > > & | get_positions () const |
returns the positions (only available for current dimension) More... | |
IVectorDebugWriter () | |
Constructor. More... | |
void | leave_section () |
leave the current debugging section More... | |
virtual void | print_message (const char *msg) |
prints a message More... | |
void | set_base_dir (const char *const baseDir) |
set the base directory for output files (.vec and .mat) More... | |
void | set_context (SmartPtr< DebugWriterContext > context) |
set the debugging writer context More... | |
void | set_positions (const std::vector< MathVector< dim > > &vPos) |
sets the current positions More... | |
void | set_positions (IPositionProvider< dim > &provider) |
employs a position provider to set the current positions More... | |
virtual void | update_positions () |
virtual | ~IVectorDebugWriter () |
virtual destructor More... | |
Private Member Functions | |
template<int dim> | |
void | write_matrix_dim (const matrix_type &mat, const char *filename) |
auxiliary function for matrices More... | |
template<int dim> | |
void | write_vector_dim (const vector_type &vec, const char *filename) |
auxiliary function for vectors More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ug::IVectorDebugWriter< TAlgebra::vector_type > | |
void | compose_file_path (std::string &path) |
composes the path for the files and creates the intermediate directories (up to the base one): More... | |
std::vector< MathVector< 1 > > & | get_pos (Int2Type< 1 >) |
help function to get local ips More... | |
const std::vector< MathVector< 1 > > & | get_pos (Int2Type< 1 >) const |
std::vector< MathVector< 2 > > & | get_pos (Int2Type< 2 >) |
const std::vector< MathVector< 2 > > & | get_pos (Int2Type< 2 >) const |
std::vector< MathVector< 3 > > & | get_pos (Int2Type< 3 >) |
const std::vector< MathVector< 3 > > & | get_pos (Int2Type< 3 >) const |
std::vector< MathVector< dim > > & | positions () |
returns the positions and sets the current dim More... | |
Protected Attributes inherited from ug::IVectorDebugWriter< TAlgebra::vector_type > | |
int | m_currentDim |
current dimension More... | |
SmartPtr< DebugWriterContext > | m_spContext |
debugging writer context More... | |
std::vector< MathVector< 1 > > | m_vPos1d |
vectors of positions More... | |
std::vector< MathVector< 2 > > | m_vPos2d |
std::vector< MathVector< 3 > > | m_vPos3d |
Debug writer for connection viewer (based on algebraic information + vector positions only)
typedef TAlgebra ug::AlgebraDebugWriter< TAlgebra >::algebra_type |
type of matrix
typedef IDebugWriter<TAlgebra> ug::AlgebraDebugWriter< TAlgebra >::base_type |
type of base
typedef algebra_type::matrix_type ug::AlgebraDebugWriter< TAlgebra >::matrix_type |
type of matrix
typedef algebra_type::vector_type ug::AlgebraDebugWriter< TAlgebra >::vector_type |
type of vector
|
inline |
Constructor.
|
inlinevirtual |
write matrix
References ug::IVectorDebugWriter< TAlgebra::vector_type >::current_dimension(), ug::FileTypeIs(), UG_ASSERT, and UG_THROW.
|
inlineprivate |
auxiliary function for matrices
References dim, ug::IVectorDebugWriter< TAlgebra::vector_type >::get_base_dir(), name, and UG_THROW.
|
inlinevirtual |
write vector
References ug::IVectorDebugWriter< TAlgebra::vector_type >::current_dimension(), and UG_ASSERT.
|
inlineprivate |
auxiliary function for vectors
References dim, ug::IVectorDebugWriter< TAlgebra::vector_type >::get_base_dir(), name, and UG_THROW.