Skip to content
Snippets Groups Projects
Commit 854a2e52 authored by Natalie Schröder's avatar Natalie Schröder
Browse files

[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
parent 5d84e7ab
No related branches found
No related tags found
No related merge requests found
...@@ -84,8 +84,8 @@ public: ...@@ -84,8 +84,8 @@ public:
Scalar K2) const Scalar K2) const
{ {
const Scalar K = Dumux::harmonicMean(K1, K2); const Scalar K = Dumux::harmonicMean(K1, K2);
for (int i = 0; i < dimWorld; ++i) { for (int i = 0; i < dim; ++i) {
for (int j = 0; j < dimWorld; ++j) for (int j = 0; j < dim; ++j)
result[i][j] = 0; result[i][j] = 0;
result[i][i] = K; result[i][i] = K;
} }
...@@ -103,8 +103,8 @@ public: ...@@ -103,8 +103,8 @@ public:
{ {
// entry-wise harmonic mean. this is almost certainly wrong if // entry-wise harmonic mean. this is almost certainly wrong if
// you have off-main diagonal entries in your permeabilities! // you have off-main diagonal entries in your permeabilities!
for (int i = 0; i < dimWorld; ++i) for (int i = 0; i < dim; ++i)
for (int j = 0; j < dimWorld; ++j) for (int j = 0; j < dim; ++j)
result[i][j] = harmonicMean(K1[i][j], K2[i][j]); result[i][j] = harmonicMean(K1[i][j], K2[i][j]);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment