From 7e834dd3b5d2887576f919b11ea5d85956ca7bd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Mon, 24 Jan 2011 11:21:25 +0100 Subject: [PATCH] Explicitly state that ratio->psum is a scalar per total connection. --- src/cfs_tpfa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cfs_tpfa.c b/src/cfs_tpfa.c index d386120ac..a2d05bf9f 100644 --- a/src/cfs_tpfa.c +++ b/src/cfs_tpfa.c @@ -97,7 +97,7 @@ allocate_densrat(grid_t *g, well_t *w, int np) ddata_sz = np * np; /* lu */ ddata_sz += np * nglobconn; /* x */ ddata_sz += np * ntotconn; /* Ai_y */ - ddata_sz += ntotconn; /* psum */ + ddata_sz += 1 * ntotconn; /* psum */ new->ipiv = malloc(np * sizeof *new->ipiv); new->ddata = malloc(ddata_sz * sizeof *new->ddata);