28 #include "rheolef/branch.h"
29 #include "rheolef/iofem.h"
30 #include "rheolef/iorheo.h"
31 #include "rheolef/rheostream.h"
36 template <
class T> odiststream&
field_put_vtk (odiststream&,
const field_basic<T,sequential>&, std::string,
bool);
42 ostream& os =
out.os();
43 iorheo::setbranch_counter(os, 0);
51 string basename = iorheo::getbasename(out_vtk.
os());
53 << setprecision(numeric_limits<T>::digits10);
56 for (
size_t i = 0; i <
b.n_field(); i++) {
60 approx0 = (! b0.is_hierarchical()) ? b0.name() : b0[0].name();
62 const string&
name =
b[i].first;
66 string approx = (! bi.is_hierarchical()) ? bi.name() : bi[0].name();
67 if (approx != approx0) {
68 warning_macro(
"field #"<<i<<
" name '"<<
name<<
": approx `"<<approx<<
"' incompatible with field #0 approx `"<<approx0<<
"'");
69 error_macro (
"HINT: use the \"branch -proj\" option");
80 ostream& os =
out.os();
81 string basename = iorheo::getbasename(os);
83 string data_file_name =
basename +
"-" + std::to_string(
b._count_value) +
".vtk";
84 ofstream
vtk (data_file_name.c_str());
86 bool verbose = iorheo::getverbose(clog);
87 verbose && clog <<
"! file `" << data_file_name <<
"' created" << endl;
see the basis page for the full documentation
const space_type & get_space() const
odiststream: see the diststream page for the full documentation
#define error_macro(message)
#define warning_macro(message)
verbose clean transpose logscale grid shrink ball stereo iso volume skipvtk deformation fastfieldload lattice reader_on_stdin color format format format format format format format format format format format format format format format format vtk
This file is part of Rheolef.
void put_event_vtk_stream(odiststream &out_vtk, const branch_basic< T, sequential > &b)
void put_header_vtk(odiststream &out, const branch_basic< T, sequential > &b)
void put_finalize_vtk(odiststream &out, const branch_basic< T, sequential > &b)
void put_event_vtk(odiststream &out, const branch_basic< T, sequential > &b)
odiststream & field_put_vtk(odiststream &, const field_basic< T, sequential > &, std::string, bool)