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++) {
61 const string&
name =
b[i].first;
64 "field #"<<i<<
" name '"<<
name<<
": approx `"<<ui.
get_approx()<<
"' incompatible with field #0 approx `"<<approx<<
"'");
74 ostream& os =
out.os();
75 string basename = iorheo::getbasename(os);
77 string data_file_name =
basename +
"-" +
itos(
b._count_value) +
".vtk";
78 ofstream
vtk (data_file_name.c_str());
80 bool verbose = iorheo::getverbose(clog);
81 verbose && clog <<
"! file `" << data_file_name <<
"' created" << endl;
std::string get_approx() const
odiststream: see the diststream page for the full documentation
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)
std::string itos(std::string::size_type i)
itos: see the rheostream page for the full documentation
odiststream & field_put_vtk(odiststream &, const field_basic< T, sequential > &, std::string, bool)