Make 'coord' a pointer-to-const rather than a pointer-to-modifiable. We don't need to change the coord array.

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
This commit is contained in:
Bård Skaflestad 2012-06-18 16:19:41 +00:00 committed by Bård Skaflestad
parent 140d4ade25
commit e9931d8c9c

View File

@ -283,7 +283,6 @@ int finduniquepoints(const struct grdecl *g,
int len = 0; int len = 0;
double *zout = zlist; double *zout = zlist;
int pos = 0; int pos = 0;
double *coord = (double*)g->coord;
double *pt; double *pt;
const double *z[4]; const double *z[4];
const int *a[4]; const int *a[4];
@ -291,6 +290,8 @@ int finduniquepoints(const struct grdecl *g,
int pix, cix; int pix, cix;
int zix; int zix;
const double *coord = g->coord;
d1[0] = 2*g->dims[0]; d1[0] = 2*g->dims[0];
d1[1] = 2*g->dims[1]; d1[1] = 2*g->dims[1];
d1[2] = 2*g->dims[2]; d1[2] = 2*g->dims[2];