out << '\n';
}
+
+
void DataOutBase::write_vtu_footer (std::ostream &out)
{
AssertThrow (out, ExcIO());
out << "</VTKFile>\n";
}
+
+
template <int dim, int spacedim>
void
DataOutBase::write_vtu (const std::vector<Patch<dim,spacedim> > &patches,
write_vtu_header(out);
write_vtu_main (patches, data_names, vector_data_ranges, flags, out);
write_vtu_footer(out);
+
+ out << std::flush;
}
<< "\"></DataArray>\n";
}
- out << "</PointData>\n";
+ out << " </PointData>\n";
+ out << "</Piece>\n";
- out
- << "</Piece>" << std::endl;
+ out << std::flush;
return;
}
DataOutInterface<dim,spacedim>::write_visit_record (std::ostream &out,
const std::vector<std::string> &piece_names) const
{
- out << "!NBLOCKS " << piece_names.size() << std::endl;
+ out << "!NBLOCKS " << piece_names.size() << '\n';
for (unsigned int i=0; i<piece_names.size(); ++i)
- out << piece_names[i] << std::endl;
+ out << piece_names[i] << '\n';
+
+ out << std::flush;
}