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:
parent
5cac732131
commit
2062789678
@ -140,7 +140,10 @@ checkmemory(int nz, struct processed_grid *out, int **intersections)
|
|||||||
{
|
{
|
||||||
int r, m, n, ok;
|
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);
|
r = (2*nz + 2) * (2*nz + 2);
|
||||||
m = out->m;
|
m = out->m;
|
||||||
n = out->n;
|
n = out->n;
|
||||||
|
Loading…
Reference in New Issue
Block a user