Do not check ZCORN monotonicity in inactive cells.
Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
This commit is contained in:
parent
f11772b265
commit
ca0e2600db
@ -445,7 +445,10 @@ void process_grdecl(const struct grdecl *in,
|
||||
double z1 = sign*in->zcorn[i+2*nx*(j+2*ny*(k))];
|
||||
double z2 = sign*in->zcorn[i+2*nx*(j+2*ny*(k+1))];
|
||||
|
||||
if (z2 < z1){
|
||||
int c1 = i/2 + nx*(j/2 + ny*k/2);
|
||||
int c2 = i/2 + nx*(j/2 + ny*(k+1)/2);
|
||||
|
||||
if (in->actnum[c1] && in->actnum[c2] && (z2 < z1)){
|
||||
fprintf(stderr, "\nZCORN should be strictly nondecreasing along pillars!\n");
|
||||
error = 1;
|
||||
goto end;
|
||||
|
Loading…
Reference in New Issue
Block a user