geo_header.h
Go to the documentation of this file.
#ifndef _RHEOLEF_GEO_HEADER_H
#define _RHEOLEF_GEO_HEADER_H
//
// i/o for geo header file format version 3
//
#include "rheolef/diststream.h"
#include "rheolef/reference_element.h"
#include "rheolef/space_constant.h"
namespace rheolef {
struct geo_header {
typedef size_t size_type;
typedef space_constant::coordinate_type coordinate_type;
geo_header();
// accessor:
bool need_upgrade() const;
// data:
size_type dimension;
size_type map_dimension;
coordinate_type sys_coord;
size_type order;
size_type dis_size_by_variant [reference_element::max_variant];
size_type dis_size_by_dimension [4];
};
inline
geo_header::geo_header()
: dimension(0),
map_dimension(0),
sys_coord(space_constant::cartesian),
order(1),
dis_size_by_variant(),
dis_size_by_dimension()
{
std::fill (dis_size_by_variant, dis_size_by_variant + reference_element::max_variant, 0);
std::fill (dis_size_by_dimension, dis_size_by_dimension + 4, 0);
}
idiststream& operator>> (idiststream& ips, geo_header& h);
odiststream& operator<< (odiststream& ops, const geo_header& h);
} // namespace rheolef {
#endif // _RHEOLEF_GEO_HEADER_H
rheolef::odiststream
odiststream: see the diststream page for the full documentation
Definition: diststream.h:126
rheolef::reference_element::max_variant
static const variant_type max_variant
Definition: reference_element.h:82
dimension
const size_t dimension
Definition: edge.icc:64
mkgeo_ball.order
order
Definition: mkgeo_ball.sh:343
mkgeo_contraction.h
h
Definition: mkgeo_contraction.sh:179
mkgeo_grid.sys_coord
string sys_coord
Definition: mkgeo_grid.sh:171
rheolef::space_constant::coordinate_type
coordinate_type
Definition: space_constant.h:121
rheolef::space_constant::cartesian
@ cartesian
Definition: space_constant.h:122
rheolef
This file is part of Rheolef.
Definition: compiler_eigen.h:37
rheolef::operator>>
std::istream & operator>>(std::istream &is, const catchmark &m)
Definition: catchmark.h:88
rheolef::operator<<
std::ostream & operator<<(std::ostream &os, const catchmark &m)
Definition: catchmark.h:99
rheolef::geo_header
Definition: geo_header.h:32
rheolef::geo_header::coordinate_type
space_constant::coordinate_type coordinate_type
Definition: geo_header.h:34
rheolef::geo_header::need_upgrade
bool need_upgrade() const
Definition: geo_header.cc:79
rheolef::geo_header::map_dimension
size_type map_dimension
Definition: geo_header.h:40
rheolef::geo_header::dis_size_by_dimension
size_type dis_size_by_dimension[4]
Definition: geo_header.h:44
rheolef::geo_header::size_type
size_t size_type
Definition: geo_header.h:33
rheolef::geo_header::sys_coord
coordinate_type sys_coord
Definition: geo_header.h:41
rheolef::geo_header::order
size_type order
Definition: geo_header.h:42
rheolef::geo_header::geo_header
geo_header()
Definition: geo_header.h:47
rheolef::geo_header::dimension
size_type dimension
Definition: geo_header.h:39
rheolef::geo_header::dis_size_by_variant
size_type dis_size_by_variant[reference_element::max_variant]
Definition: geo_header.h:43