Do not check ZCORN monotonicity in inactive cells.

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
This commit is contained in:
Jostein R. Natvig 2012-01-16 12:41:34 +00:00 committed by Bård Skaflestad
parent f11772b265
commit ca0e2600db

View File

@ -445,7 +445,10 @@ void process_grdecl(const struct grdecl *in,
double z1 = sign*in->zcorn[i+2*nx*(j+2*ny*(k))]; 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))]; 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"); fprintf(stderr, "\nZCORN should be strictly nondecreasing along pillars!\n");
error = 1; error = 1;
goto end; goto end;