From 854a2e52af3d5773efa50ecf1a91378cebc199ca Mon Sep 17 00:00:00 2001 From: Natalie Schroeder <natalies.schroeder@iws.uni-stuttgart.de> Date: Mon, 22 Sep 2014 06:02:35 +0000 Subject: [PATCH] [dim vs dimWorld] changing dim-vectors to dimWorld-vectors, needed for dim!=dimWorld grids reviewed by A.Kissinger git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@13376 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- dumux/material/spatialparams/implicitspatialparams1p.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dumux/material/spatialparams/implicitspatialparams1p.hh b/dumux/material/spatialparams/implicitspatialparams1p.hh index c40e223acb..1514cf304a 100644 --- a/dumux/material/spatialparams/implicitspatialparams1p.hh +++ b/dumux/material/spatialparams/implicitspatialparams1p.hh @@ -84,8 +84,8 @@ public: Scalar K2) const { const Scalar K = Dumux::harmonicMean(K1, K2); - for (int i = 0; i < dimWorld; ++i) { - for (int j = 0; j < dimWorld; ++j) + for (int i = 0; i < dim; ++i) { + for (int j = 0; j < dim; ++j) result[i][j] = 0; result[i][i] = K; } @@ -103,8 +103,8 @@ public: { // entry-wise harmonic mean. this is almost certainly wrong if // you have off-main diagonal entries in your permeabilities! - for (int i = 0; i < dimWorld; ++i) - for (int j = 0; j < dimWorld; ++j) + for (int i = 0; i < dim; ++i) + for (int j = 0; j < dim; ++j) result[i][j] = harmonicMean(K1[i][j], K2[i][j]); } -- GitLab