From 20627896787dbec18cc50107c70cddd343f5b07b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Wed, 20 Jun 2012 18:07:32 +0000 Subject: [PATCH] checkmemory(): Expand on the role of "r" size estimate for the number of additional connections (faces) along a faulted stack. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bård Skaflestad --- preprocess.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/preprocess.c b/preprocess.c index b455540a..f01d9d26 100644 --- a/preprocess.c +++ b/preprocess.c @@ -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;