ug4
ug::AlgebraDebugWriter< TAlgebra > Class Template Reference

Debug writer for connection viewer (based on algebraic information + vector positions only) More...

#include <algebra_debug_writer.h>

+ Inheritance diagram for ug::AlgebraDebugWriter< TAlgebra >:

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< DebugWriterContextget_context ()
 get the debugging writer context More...
 
ConstSmartPtr< DebugWriterContextget_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< DebugWriterContextm_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
 

Detailed Description

template<typename TAlgebra>
class ug::AlgebraDebugWriter< TAlgebra >

Debug writer for connection viewer (based on algebraic information + vector positions only)

Member Typedef Documentation

◆ algebra_type

template<typename TAlgebra >
typedef TAlgebra ug::AlgebraDebugWriter< TAlgebra >::algebra_type

type of matrix

◆ base_type

template<typename TAlgebra >
typedef IDebugWriter<TAlgebra> ug::AlgebraDebugWriter< TAlgebra >::base_type

type of base

◆ matrix_type

template<typename TAlgebra >
typedef algebra_type::matrix_type ug::AlgebraDebugWriter< TAlgebra >::matrix_type

type of matrix

◆ vector_type

template<typename TAlgebra >
typedef algebra_type::vector_type ug::AlgebraDebugWriter< TAlgebra >::vector_type

type of vector

Constructor & Destructor Documentation

◆ AlgebraDebugWriter()

template<typename TAlgebra >
ug::AlgebraDebugWriter< TAlgebra >::AlgebraDebugWriter ( )
inline

Constructor.

Member Function Documentation

◆ write_matrix()

template<typename TAlgebra >
virtual void ug::AlgebraDebugWriter< TAlgebra >::write_matrix ( const matrix_type mat,
const char *  filename 
)
inlinevirtual

◆ write_matrix_dim()

template<typename TAlgebra >
template<int dim>
void ug::AlgebraDebugWriter< TAlgebra >::write_matrix_dim ( const matrix_type mat,
const char *  filename 
)
inlineprivate

auxiliary function for matrices

References dim, ug::IVectorDebugWriter< TAlgebra::vector_type >::get_base_dir(), name, and UG_THROW.

◆ write_vector()

template<typename TAlgebra >
virtual void ug::AlgebraDebugWriter< TAlgebra >::write_vector ( const vector_type vec,
const char *  filename 
)
inlinevirtual

◆ write_vector_dim()

template<typename TAlgebra >
template<int dim>
void ug::AlgebraDebugWriter< TAlgebra >::write_vector_dim ( const vector_type vec,
const char *  filename 
)
inlineprivate

auxiliary function for vectors

References dim, ug::IVectorDebugWriter< TAlgebra::vector_type >::get_base_dir(), name, and UG_THROW.


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