diff --git a/uniquepoints.c b/uniquepoints.c index ef6046ad..c82817a8 100644 --- a/uniquepoints.c +++ b/uniquepoints.c @@ -283,7 +283,6 @@ int finduniquepoints(const struct grdecl *g, int len = 0; double *zout = zlist; int pos = 0; - double *coord = (double*)g->coord; double *pt; const double *z[4]; const int *a[4]; @@ -291,6 +290,8 @@ int finduniquepoints(const struct grdecl *g, int pix, cix; int zix; + const double *coord = g->coord; + d1[0] = 2*g->dims[0]; d1[1] = 2*g->dims[1]; d1[2] = 2*g->dims[2];