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:
parent
140d4ade25
commit
e9931d8c9c
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user