Hermes2D  2.0
Hermes::Hermes2D::Mixins::MatrixRhsOutput< Scalar > Class Template Reference

#include <mixins2d.h>

+ Inheritance diagram for Hermes::Hermes2D::Mixins::MatrixRhsOutput< Scalar >:

Public Member Functions

 MatrixRhsOutput ()
 
void output_matrix (int firstIterations=-1)
 
void set_print_zero_matrix_entries (bool to_set)
 Sets this instance to output matrix entries even though they are zero or not.
 
void set_matrix_filename (std::string name)
 
void set_matrix_varname (std::string name)
 
void set_matrix_E_matrix_dump_format (EMatrixDumpFormat format)
 
void set_matrix_number_format (char *number_format)
 
void output_rhs (int firstIterations=-1)
 
void set_rhs_filename (std::string name)
 
void set_rhs_varname (std::string name)
 
void set_rhs_E_matrix_dump_format (EMatrixDumpFormat format)
 
void set_rhs_number_format (char *number_format)
 

Protected Attributes

bool print_matrix_zero_values
 
bool output_matrixOn
 
int output_matrixIterations
 
std::string matrixFilename
 
std::string matrixVarname
 
EMatrixDumpFormat matrixFormat
 
char * matrix_number_format
 
bool output_rhsOn
 
int output_rhsIterations
 
std::string RhsFilename
 
std::string RhsVarname
 
EMatrixDumpFormat RhsFormat
 
char * rhs_number_format
 

Detailed Description

template<typename Scalar>
class Hermes::Hermes2D::Mixins::MatrixRhsOutput< Scalar >

Mixin that interfaces linear algebra structures output.

Definition at line 74 of file mixins2d.h.

Constructor & Destructor Documentation

template<typename Scalar >
Hermes::Hermes2D::Mixins::MatrixRhsOutput< Scalar >::MatrixRhsOutput ( )

Constructor. Sets defaults (see individual set methods for values of those).

Definition at line 49 of file mixins2d.cpp.

Member Function Documentation

template<typename Scalar >
void Hermes::Hermes2D::Mixins::MatrixRhsOutput< Scalar >::output_matrix ( int  firstIterations = -1)

Sets this instance to output the matrix in several first iterations.

Parameters
[in]firstIterationsOnly during so many first iterations. Default: -1 meaning, that during all iterations, the matrix will be saved.

Definition at line 55 of file mixins2d.cpp.

template<typename Scalar >
void Hermes::Hermes2D::Mixins::MatrixRhsOutput< Scalar >::output_rhs ( int  firstIterations = -1)

Sets this instance to output the rhs in several first iterations.

Parameters
[in]firstIterationsOnly during so many first iterations. Default: -1 meaning, that during all iterations, the rhs will be saved.

Definition at line 89 of file mixins2d.cpp.

template<typename Scalar >
void Hermes::Hermes2D::Mixins::MatrixRhsOutput< Scalar >::set_matrix_E_matrix_dump_format ( EMatrixDumpFormat  format)

Sets varname for the matrix Default: "DF_MATLAB_SPARSE - matlab file".

Definition at line 78 of file mixins2d.cpp.

template<typename Scalar >
void Hermes::Hermes2D::Mixins::MatrixRhsOutput< Scalar >::set_matrix_filename ( std::string  name)

Sets filename for the matrix Default: Matrix_'iteration number' with the ".m" extension in the case of matlab format.

Parameters
[in]namesets the main part of the name, i.e. replacement for "Matrix_" in the default name.

Definition at line 61 of file mixins2d.cpp.

template<typename Scalar >
void Hermes::Hermes2D::Mixins::MatrixRhsOutput< Scalar >::set_matrix_number_format ( char *  number_format)

Sets number format for the matrix output. Default: "%lf".

Definition at line 83 of file mixins2d.cpp.

template<typename Scalar >
void Hermes::Hermes2D::Mixins::MatrixRhsOutput< Scalar >::set_matrix_varname ( std::string  name)

Sets varname for the matrix Default: "A".

Definition at line 73 of file mixins2d.cpp.

template<typename Scalar >
void Hermes::Hermes2D::Mixins::MatrixRhsOutput< Scalar >::set_rhs_E_matrix_dump_format ( EMatrixDumpFormat  format)

Sets varname for the rhs Default: "DF_MATLAB_SPARSE - matlab file".

Definition at line 105 of file mixins2d.cpp.

template<typename Scalar >
void Hermes::Hermes2D::Mixins::MatrixRhsOutput< Scalar >::set_rhs_filename ( std::string  name)

Sets filename for the rhs Default: Rhs_'iteration number' with the ".m" extension in the case of matlab format.

Parameters
[in]namesets the main part of the name, i.e. replacement for "Rhs_" in the default name.

Definition at line 95 of file mixins2d.cpp.

template<typename Scalar >
void Hermes::Hermes2D::Mixins::MatrixRhsOutput< Scalar >::set_rhs_number_format ( char *  number_format)

Sets number format for the vector output. Default: "%lf".

Definition at line 110 of file mixins2d.cpp.

template<typename Scalar >
void Hermes::Hermes2D::Mixins::MatrixRhsOutput< Scalar >::set_rhs_varname ( std::string  name)

Sets varname for the rhs Default: "b".

Definition at line 100 of file mixins2d.cpp.


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