36 #ifndef OPM_VAG_HPP_HEADER
37 #define OPM_VAG_HPP_HEADER
108 template <
typename T>
111 for(
int i=0;i< int(vec.size());++i){
121 template <
typename T>
123 typedef typename std::vector<T>::size_type sz_t;
127 for (sz_t i = 0; i < vec.size(); ++i) {
128 os << vec[i] << (((i % nn) == 0) ?
'\n' :
' ');
131 if ((vec.size() % nn) != 0) {
142 void readPosStruct(std::istream& is,
int n,PosStruct& pos_struct);
void vagToUnstructuredGrid(Opm::VAG &vag_grid, UnstructuredGrid &grid)
int number_of_edges
Definition: vag.hpp:66
Definition: AnisotropicEikonal.hpp:43
void writePosStruct(std::ostream &os, PosStruct &pos_struct)
PosStruct volumes_to_vertices
Definition: vag.hpp:72
int number_of_volumes
Definition: vag.hpp:64
void writeVector(std::ostream &os, std::vector< T > &vec, int n)
Definition: vag.hpp:122
PosStruct volumes_to_faces
Definition: vag.hpp:70
int number_of_vertices
Definition: vag.hpp:63
std::vector< int > value
Definition: vag.hpp:56
std::vector< int > edges
Definition: vag.hpp:78
void readPosStruct(std::istream &is, int n, PosStruct &pos_struct)
int number_of_faces
Definition: vag.hpp:65
std::vector< int > pos
Definition: vag.hpp:55
void readVector(std::istream &is, std::vector< T > &vec)
Definition: vag.hpp:109
void writeVagFormat(std::ostream &os, Opm::VAG &vag_grid)
void readVagGrid(std::istream &is, Opm::VAG &vag_grid)
PosStruct faces_to_edges
Definition: vag.hpp:74
std::vector< double > material
Definition: vag.hpp:87
std::vector< double > vertices
Definition: vag.hpp:68
const UnstructuredGrid & grid
Definition: ColumnExtract.hpp:31
PosStruct faces_to_vertices
Definition: vag.hpp:76
void unstructuredGridToVag(UnstructuredGrid &grid, Opm::VAG &vag_grid)
std::vector< int > faces_to_volumes
Definition: vag.hpp:80