Rheolef  7.1
an efficient C++ finite element environment
geo_header.h
Go to the documentation of this file.
1 #ifndef _RHEOLEF_GEO_HEADER_H
2 #define _RHEOLEF_GEO_HEADER_H
23 //
24 // i/o for geo header file format version 3
25 //
26 #include "rheolef/diststream.h"
27 #include "rheolef/reference_element.h"
28 #include "rheolef/space_constant.h"
29 
30 namespace rheolef {
31 
32 struct geo_header {
33  typedef size_t size_type;
35  geo_header();
36 // accessor:
37  bool need_upgrade() const;
38 // data:
45 };
46 inline
48  : dimension(0),
49  map_dimension(0),
50  sys_coord(space_constant::cartesian),
51  order(1),
52  dis_size_by_variant(),
53  dis_size_by_dimension()
54 {
56  std::fill (dis_size_by_dimension, dis_size_by_dimension + 4, 0);
57 }
58 idiststream& operator>> (idiststream& ips, geo_header& h);
60 
61 } // namespace rheolef {
62 #endif // _RHEOLEF_GEO_HEADER_H
odiststream: see the diststream page for the full documentation
Definition: diststream.h:126
static const variant_type max_variant
const size_t dimension
Definition: edge.icc:64
string sys_coord
Definition: mkgeo_grid.sh:171
This file is part of Rheolef.
std::istream & operator>>(std::istream &is, const catchmark &m)
Definition: catchmark.h:88
std::ostream & operator<<(std::ostream &os, const catchmark &m)
Definition: catchmark.h:99
space_constant::coordinate_type coordinate_type
Definition: geo_header.h:34
bool need_upgrade() const
Definition: geo_header.cc:79
size_type map_dimension
Definition: geo_header.h:40
size_type dis_size_by_dimension[4]
Definition: geo_header.h:44
coordinate_type sys_coord
Definition: geo_header.h:41
size_type dimension
Definition: geo_header.h:39
size_type dis_size_by_variant[reference_element::max_variant]
Definition: geo_header.h:43