21#include "rheolef/geo.h"
22#include "rheolef/geo_domain.h"
27template <
class T> odiststream&
visu_gnuplot (odiststream&,
const geo_basic<T,sequential>&);
28template <
class T> odiststream&
visu_vtk_paraview (odiststream&,
const geo_basic<T,sequential>&);
29template <
class T> odiststream&
geo_put_gmsh (odiststream&,
const geo_basic<T,sequential>&);
30template <
class T> odiststream&
geo_put_bamg (odiststream&,
const geo_basic<T,sequential>&);
40 return base::data().put (ops);
46 size_type n_vert = base::_node.dis_size ();
47 size_type n_elt = base::_gs.ownership_by_dimension[base::_gs._map_dimension].dis_size ();
51 ops.
os() << std::setprecision(numeric_limits<T>::digits10);
52 ops <<
"#!geo" << endl
57 if (base::_version == 4) {
59 h.dimension = base::_dimension;
60 h.sys_coord = base::_sys_coord;
62 h.dis_size_by_variant [0] = base::_node.dis_size();
63 if (base::_have_connectivity) {
66 h.dis_size_by_variant [
variant] = base::_geo_element [
variant].dis_size();
72 h.dis_size_by_variant [
variant] = base::_geo_element [
variant].dis_size();
75 ops << endl <<
h << endl;
80 T rounding_prec = iorheo::getrounding_precision(ops.
os());
81 if (rounding_prec == 0) {
82 base::_node.put_values (ops,
_point_put<T>(base::_dimension));
90 if (base::_gs._map_dimension > 0) {
93 base::_geo_element [
variant].put_values (ops);
100 if (base::_gs._map_dimension > 1 && base::_have_connectivity) {
101 for (
size_type side_dim = base::_gs._map_dimension - 1; side_dim >= 1; side_dim--) {
104 base::_geo_element [
variant].put_values (ops);
112 iter = base::_domains.begin(), last = base::_domains.end();
113 iter != last; ++iter) {
geo_element_hack::size_type size_type
sequential mesh representation
std::bitset< last > flag_type
static flag_type format_field
odiststream: see the diststream page for the full documentation
static const variant_type max_variant
static variant_type last_variant_by_dimension(size_type dim)
static variant_type first_variant_by_dimension(size_type dim)
This file is part of Rheolef.
odiststream & geo_put_bamg(odiststream &, const geo_basic< T, sequential > &)
odiststream & visu_vtk_paraview(odiststream &, const field_basic< T, sequential > &)
void put(std::ostream &out, std::string name, const tiny_matrix< T > &a)
odiststream & visu_gnuplot(odiststream &, const field_basic< T, sequential > &)
odiststream & geo_put_gmsh(odiststream &ods, const geo_basic< T, sequential > &)
point output helper, with rounding feature