Reference documentation for deal.II version SVN Revision 32792
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Private Attributes | List of all members
DoFPrintSolverStep< dim, SOLVER, VECTOR > Class Template Reference

#include <dof_print_solver_step.h>

Inheritance diagram for DoFPrintSolverStep< dim, SOLVER, VECTOR >:
[legend]

Public Member Functions

 DoFPrintSolverStep (SolverControl &control, VectorMemory< VECTOR > &mem, DataOut< dim > &data_out, const std::string &basename)
 
virtual void print_vectors (const unsigned int step, const VECTOR &x, const VECTOR &r, const VECTOR &d) const
 

Private Attributes

DataOut< dim > & out
 
const std::string basename
 

Detailed Description

template<int dim, class SOLVER, class VECTOR = Vector<double>>
class DoFPrintSolverStep< dim, SOLVER, VECTOR >

Print intermediate solutions in solvers. This is derived from a solver class provided as template argument. It implements the print_vector function of the solver using a DoFHandler. This way, the intermediate vectors can be viewed as finite element functions. This class might be used first to understand how solvers work (for example to visualize the smoothing properties of various solvers, e.g. in a multigrid context), and second to investigate why and how a solver fails to solve certain classes of problems.

Objects of this class are provided with a solver class through a template argument, and with a file name (as a string), with which a new file is constructed in each iteration (named basename.[step].[suffix]) and into which the solution is written as a finite element field using the DataOut class. Please note that this class may produce enormous amounts of data!

Author
Guido Kanschat, 2000

Definition at line 55 of file dof_print_solver_step.h.

Constructor & Destructor Documentation

template<int dim, class SOLVER , class VECTOR >
DoFPrintSolverStep< dim, SOLVER, VECTOR >::DoFPrintSolverStep ( SolverControl control,
VectorMemory< VECTOR > &  mem,
DataOut< dim > &  data_out,
const std::string &  basename 
)

Constructor. First, we take the arguments needed for the solver. data_out is the object doing the output as a finite element function.

One output file with the name basename.[step].[suffix] will be produced for each iteration step.

Definition at line 99 of file dof_print_solver_step.h.

Member Function Documentation

template<int dim, class SOLVER , class VECTOR >
void DoFPrintSolverStep< dim, SOLVER, VECTOR >::print_vectors ( const unsigned int  step,
const VECTOR &  x,
const VECTOR &  r,
const VECTOR &  d 
) const
virtual

Call-back function for the iterative method.

Definition at line 111 of file dof_print_solver_step.h.

Member Data Documentation

template<int dim, class SOLVER , class VECTOR = Vector<double>>
DataOut<dim>& DoFPrintSolverStep< dim, SOLVER, VECTOR >::out
private

Output object.

Definition at line 87 of file dof_print_solver_step.h.

template<int dim, class SOLVER , class VECTOR = Vector<double>>
const std::string DoFPrintSolverStep< dim, SOLVER, VECTOR >::basename
private

Base of filenames.

Definition at line 92 of file dof_print_solver_step.h.


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