16#ifndef dealii_dof_print_solver_step_h
17#define dealii_dof_print_solver_step_h
54template <
int dim,
typename SolverType,
class VectorType = Vector<
double>>
77 const VectorType &
d)
const;
94template <
int dim,
typename SolverType,
class VectorType>
99 const std::string & basename)
106template <
int dim,
typename SolverType,
class VectorType>
109 const unsigned int step,
110 const VectorType & x,
111 const VectorType & r,
112 const VectorType &
d)
const
114 out.clear_data_vectors();
115 out.add_data_vector(x,
"solution");
116 out.add_data_vector(r,
"residual");
117 out.add_data_vector(
d,
"update");
119 std::ostringstream filename;
120 filename << basename << std::setw(3) << std::setfill(
'0') << step
121 << out.default_suffix();
123 const std::string fname = filename.str();
125 deallog <<
"Writing file:" << fname << std::endl;
128 std::ofstream of(fname.c_str());
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
SymmetricTensor< 2, dim, Number > d(const Tensor< 2, dim, Number > &F, const Tensor< 2, dim, Number > &dF_dt)