mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
assignPermeability: Remark on storage order
Clients expect column-major (Fortran) ordering of the contiguous "permeability_" array so that's what we create despite "tensor" being row-major. Suggested by: [at] atgeirr
This commit is contained in:
parent
e037142b01
commit
c52175a200
@ -118,7 +118,13 @@ namespace Opm
|
||||
|
||||
for (int i = 0; i < dim; ++i) {
|
||||
for (int j = 0; j < dim; ++j, ++kix) {
|
||||
// K(i,j) = (*tensor[kmap[kix]])[glob];
|
||||
// Clients expect column-major (Fortran) order
|
||||
// in "permeability_" so honour that
|
||||
// requirement despite "tensor" being created
|
||||
// row-major. Note: The actual numerical
|
||||
// values in the resulting array are the same
|
||||
// in either order when viewed contiguously
|
||||
// because fillTensor() enforces symmetry.
|
||||
permeability_[off + (i + dim*j)] = (*tensor[kmap[kix]])[glob];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user