16 #ifndef dealii__dof_print_solver_step_h 17 #define dealii__dof_print_solver_step_h 19 #include <deal.II/base/config.h> 20 #include <deal.II/base/logstream.h> 21 #include <deal.II/lac/solver_control.h> 22 #include <deal.II/lac/vector_memory.h> 23 #include <deal.II/numerics/data_out.h> 29 DEAL_II_NAMESPACE_OPEN
52 template<
int dim,
typename SolverType,
class VectorType = Vector<
double> >
74 const VectorType &d)
const;
90 template<
int dim,
typename SolverType,
class VectorType>
96 : SolverType (control, mem),
102 template<
int dim,
typename SolverType,
class VectorType>
105 (
const unsigned int step,
108 const VectorType &d)
const 115 std::ostringstream filename;
117 << std::setw(3) << std::setfill(
'0') << step
120 const std::string fname = filename.str();
122 deallog <<
"Writing file:" << fname << std::endl;
125 std::ofstream of (fname.c_str());
129 DEAL_II_NAMESPACE_CLOSE
void write(std::ostream &out, const DataOutBase::OutputFormat output_format=DataOutBase::default_format) const
virtual void build_patches(const unsigned int n_subdivisions=0)
void add_data_vector(const VectorType &data, const std::vector< std::string > &names, const DataVectorType type=type_automatic, const std::vector< DataComponentInterpretation::DataComponentInterpretation > &data_component_interpretation=std::vector< DataComponentInterpretation::DataComponentInterpretation >())
std::string default_suffix(const DataOutBase::OutputFormat output_format=DataOutBase::default_format) const
virtual void print_vectors(const unsigned int step, const VectorType &x, const VectorType &r, const VectorType &d) const
void clear_data_vectors()
const std::string basename
DoFPrintSolverStep(SolverControl &control, VectorMemory< VectorType > &mem, DataOut< dim > &data_out, const std::string &basename)