15#ifndef dealii_dof_print_solver_step_h
16#define dealii_dof_print_solver_step_h
53template <
int dim,
typename SolverType,
typename VectorType = Vector<
double>>
76 const VectorType &d)
const;
93template <
int dim,
typename SolverType,
typename VectorType>
98 const std::string &basename)
99 : SolverType(control, mem)
105template <
int dim,
typename SolverType,
typename VectorType>
108 const unsigned int step,
111 const VectorType &d)
const
113 out.clear_data_vectors();
114 out.add_data_vector(x,
"solution");
115 out.add_data_vector(r,
"residual");
116 out.add_data_vector(d,
"update");
118 std::ostringstream filename;
119 filename << basename << std::setw(3) << std::setfill(
'0') << step
120 << out.default_suffix();
122 const std::string fname = filename.str();
124 deallog <<
"Writing file:" << fname << std::endl;
127 std::ofstream of(fname);
const std::string basename
DoFPrintSolverStep(SolverControl &control, VectorMemory< VectorType > &mem, DataOut< dim > &data_out, const std::string &basename)
virtual void print_vectors(const unsigned int step, const VectorType &x, const VectorType &r, const VectorType &d) const
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE