mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fix semantics of permeability assignment
Calling code relies on permeability tensors being stored in column major order (row index cycling the most rapidly). Honour that requirement. The previous assignment implied row major ordering (column index cycling the most rapidly). This, however, is a pedantic rather than visible change because the surrounding code enforces symmetric tensors whence both orderings produce the same results when the array is viewed contiguously.
This commit is contained in:
parent
cc23f74f25
commit
c0559fa258
@ -126,7 +126,7 @@ namespace Opm
|
||||
for (int i = 0; i < dim; ++i) {
|
||||
for (int j = 0; j < dim; ++j, ++kix) {
|
||||
// K(i,j) = (*tensor[kmap[kix]])[glob];
|
||||
permeability_[off + kix] = (*tensor[kmap[kix]])[glob];
|
||||
permeability_[off + (i + dim*j)] = (*tensor[kmap[kix]])[glob];
|
||||
}
|
||||
// K(i,i) = std::max(K(i,i), perm_threshold);
|
||||
permeability_[off + 3*i + i] = std::max(permeability_[off + 3*i + i], perm_threshold);
|
||||
|
Loading…
Reference in New Issue
Block a user