checkmemory(): Expand on the role of "r" size estimate for the number of additional connections (faces) along a faulted stack.

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
This commit is contained in:
Bård Skaflestad 2012-06-20 18:07:32 +00:00 committed by Bård Skaflestad
parent 5cac732131
commit 2062789678

View File

@ -140,7 +140,10 @@ checkmemory(int nz, struct processed_grid *out, int **intersections)
{
int r, m, n, ok;
/* Ensure there is enough space */
/* Ensure there is enough space to manage the (pathological) case
* of every single cell on one side of a fault connecting to all
* cells on the other side of the fault (i.e., an all-to-all cell
* connectivity pairing). */
r = (2*nz + 2) * (2*nz + 2);
m = out->m;
n = out->n;