preprocess.h
Go to the documentation of this file.
1 /*===========================================================================
2 //
3 // File: preprocess.h
4 //
5 // Created: Fri Jun 19 08:43:04 2009
6 //
7 // Author: Jostein R. Natvig <Jostein.R.Natvig@sintef.no>
8 //
9 // $Date$
10 //
11 // $Revision$
12 //
13 //==========================================================================*/
14 
15 /*
16  Copyright 2009, 2010 SINTEF ICT, Applied Mathematics.
17  Copyright 2009, 2010 Statoil ASA.
18 
19  This file is part of the Open Porous Media project (OPM).
20 
21  OPM is free software: you can redistribute it and/or modify
22  it under the terms of the GNU General Public License as published by
23  the Free Software Foundation, either version 3 of the License, or
24  (at your option) any later version.
25 
26  OPM is distributed in the hope that it will be useful,
27  but WITHOUT ANY WARRANTY; without even the implied warranty of
28  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29  GNU General Public License for more details.
30 
31  You should have received a copy of the GNU General Public License
32  along with OPM. If not, see <http://www.gnu.org/licenses/>.
33 */
34 
35 #ifndef OPM_PREPROCESS_HEADER
36 #define OPM_PREPROCESS_HEADER
37 
49 #ifdef __cplusplus
50 extern "C" {
51 #endif
52 
56  struct grdecl {
57  int dims[3];
58  const double *coord;
59  const double *zcorn;
60  const int *actnum;
61  const double *mapaxes;
62  };
63 
67  enum face_tag {
68  LEFT,
69  BACK,
70  TOP
71  };
72 
73 
78  struct processed_grid {
79  int m;
81  int n;
84  int dimensions[3];
88  int *face_nodes;
90  int *face_ptr;
107  };
108 
109 
129  void process_grdecl(const struct grdecl *g ,
130  double tol,
131  struct processed_grid *out);
132 
143  void free_processed_grid(struct processed_grid *g);
144 #ifdef __cplusplus
145 }
146 #endif
147 
148 
149 #endif /* OPM_PREPROCESS_HEADER */
150 
151 
152 /* Local Variables: */
153 /* c-basic-offset:4 */
154 /* End: */
int number_of_nodes
Definition: preprocess.h:97
int * face_nodes
Definition: preprocess.h:88
int n
Definition: preprocess.h:81
int * face_neighbors
Definition: preprocess.h:92
Definition: preprocess.h:56
int dimensions[3]
Definition: preprocess.h:84
int * local_cell_index
Definition: preprocess.h:105
const double * coord
Definition: preprocess.h:58
int number_of_cells
Definition: preprocess.h:104
int * face_ptr
Definition: preprocess.h:90
const int * actnum
Definition: preprocess.h:60
int dims[3]
Definition: preprocess.h:57
int number_of_nodes_on_pillars
Definition: preprocess.h:98
Definition: preprocess.h:68
void process_grdecl(const struct grdecl *g, double tol, struct processed_grid *out)
Definition: preprocess.h:69
const double * zcorn
Definition: preprocess.h:59
int number_of_faces
Definition: preprocess.h:86
const double * mapaxes
Definition: preprocess.h:61
enum face_tag * face_tag
Definition: preprocess.h:94
void free_processed_grid(struct processed_grid *g)
face_tag
Definition: preprocess.h:67
int m
Definition: preprocess.h:79
Definition: preprocess.h:70
Definition: preprocess.h:78
double * node_coordinates
Definition: preprocess.h:100