From 73a310725e8e83b1fad878bbdf83c7c8e016d099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Wed, 21 Jan 2015 21:14:32 +0100 Subject: [PATCH] Fixed size of zero vector passed as gpress. --- opm/core/pressure/IncompTpfaSinglePhase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/core/pressure/IncompTpfaSinglePhase.cpp b/opm/core/pressure/IncompTpfaSinglePhase.cpp index a8aebb166..b39778c6b 100644 --- a/opm/core/pressure/IncompTpfaSinglePhase.cpp +++ b/opm/core/pressure/IncompTpfaSinglePhase.cpp @@ -58,7 +58,7 @@ namespace Opm wells_(wells), htrans_(grid.cell_facepos[ grid.number_of_cells ]), trans_ (grid.number_of_faces), - zeros_(grid.number_of_faces) + zeros_(grid.cell_facepos[ grid.number_of_cells ]) { computeStaticData(); }