opm-core/opm/core/grid/cpgpreprocess/geometry.h
2012-04-11 11:07:18 +02:00

20 lines
808 B
C

/*
* Copyright 2010 (c) SINTEF ICT, Applied Mathematics.
* Jostein R. Natvig <Jostein.R.Natvig at sintef.no>
*/
#ifndef MRST_GEOMETRY_H_INCLUDED
#define MRST_GEOMETRY_H_INCLUDED
void compute_face_geometry(int ndims, double *coords, int nfaces,
int *nodepos, int *facenodes,
double *fnormals, double *fcentroids,
double *fareas);
void compute_cell_geometry(int ndims, double *coords,
int *nodepos, int *facenodes, int *neighbours,
double *fnormals,
double *fcentroids, int ncells,
int *facepos, int *cellfaces,
double *ccentroids, double *cvolumes);
#endif /* MRST_GEOMETRY_H_INCLUDED */