17 #ifndef __deal2__dof_print_solver_step_h 18 #define __deal2__dof_print_solver_step_h 20 #include <deal.II/base/config.h> 21 #include <deal.II/base/logstream.h> 22 #include <deal.II/lac/solver_control.h> 23 #include <deal.II/lac/vector_memory.h> 24 #include <deal.II/numerics/data_out.h> 54 template<
int dim,
class SOLVER,
class VECTOR = Vector<
double> >
82 const VECTOR &d)
const;
98 template<
int dim,
class SOLVER,
class VECTOR>
109 template<
int dim,
class SOLVER,
class VECTOR>
114 const VECTOR &d)
const 121 std::ostringstream filename;
123 << std::setw(3) << std::setfill(
'0') << step
126 const std::string fname = filename.str();
128 deallog <<
"Writing file:" << fname << std::endl;
131 std::ofstream of (fname.c_str());
135 DEAL_II_NAMESPACE_CLOSE
const std::string basename
DoFPrintSolverStep(SolverControl &control, VectorMemory< VECTOR > &mem, DataOut< dim > &data_out, const std::string &basename)
std::string default_suffix(const OutputFormat output_format=default_format) const
virtual void build_patches(const unsigned int n_subdivisions=0)
void clear_data_vectors()
void write(std::ostream &out, const OutputFormat output_format=default_format) const
void add_data_vector(const VECTOR &data, const std::vector< std::string > &names, const DataVectorType type=type_automatic, const std::vector< DataComponentInterpretation::DataComponentInterpretation > &data_component_interpretation=std::vector< DataComponentInterpretation::DataComponentInterpretation >())
virtual void print_vectors(const unsigned int step, const VECTOR &x, const VECTOR &r, const VECTOR &d) const