diff --git a/opm/core/grid/cart_grid.c b/opm/core/grid/cart_grid.c index 2847e1fd..c715aef3 100644 --- a/opm/core/grid/cart_grid.c +++ b/opm/core/grid/cart_grid.c @@ -118,7 +118,7 @@ create_grid_cart2d(int nx, int ny) /* --------------------------------------------------------------------- */ struct UnstructuredGrid * -create_grid_tensor2d(int nx, int ny, double x[], double y[]) +create_grid_tensor2d(int nx, int ny, const double *x, const double *y) { struct UnstructuredGrid *G; @@ -136,9 +136,13 @@ create_grid_tensor2d(int nx, int ny, double x[], double y[]) /* --------------------------------------------------------------------- */ struct UnstructuredGrid * -create_grid_tensor3d(int nx, int ny , int nz , - double x[], double y[], double z[], - const double depthz[]) +create_grid_tensor3d(int nx , + int ny , + int nz , + const double *x , + const double *y , + const double *z , + const double *depthz) { struct UnstructuredGrid *G; diff --git a/opm/core/grid/cart_grid.h b/opm/core/grid/cart_grid.h index 19fbad6c..2ab9c673 100644 --- a/opm/core/grid/cart_grid.h +++ b/opm/core/grid/cart_grid.h @@ -94,7 +94,7 @@ create_grid_cart3d(int nx, int ny, int nz); * Must be destroyed using function destroy_grid(). */ struct UnstructuredGrid * -create_grid_hexa3d(int nx, int ny, int nz, +create_grid_hexa3d(int nx, int ny, int nz, double dx, double dy, double dz); @@ -122,8 +122,8 @@ create_grid_hexa3d(int nx, int ny, int nz, * Must be destroyed using function destroy_grid(). */ struct UnstructuredGrid * -create_grid_tensor2d(int nx, int ny, - double x[], double y[]); +create_grid_tensor2d(int nx, int ny, + const double *x , const double *y ); /** @@ -157,9 +157,13 @@ create_grid_tensor2d(int nx, int ny, * Must be destroyed using function destroy_grid(). */ struct UnstructuredGrid * -create_grid_tensor3d(int nx, int ny, int nz, - double x[], double y[], double z[], - const double depthz[]); +create_grid_tensor3d(int nx , + int ny , + int nz , + const double *x , + const double *y , + const double *z , + const double *depthz); #ifdef __cplusplus } #endif diff --git a/opm/core/grid/cpgpreprocess/preprocess.c b/opm/core/grid/cpgpreprocess/preprocess.c index fe2b4a86..899ccfe7 100644 --- a/opm/core/grid/cpgpreprocess/preprocess.c +++ b/opm/core/grid/cpgpreprocess/preprocess.c @@ -872,7 +872,7 @@ void process_grdecl(const struct grdecl *in, /* -----------------------------------------------------------------*/ /* (re)allocate space for and compute coordinates of nodes that - * arise from intesecting cells (faults) */ + * arise from intersecting cells (faults) */ compute_intersection_coordinates(intersections, out); free (intersections);