mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
ebos: fix stupid bug
This commit is contained in:
parent
f8b09de3ca
commit
775ac1900f
@ -1294,9 +1294,9 @@ private:
|
||||
|
||||
if (localDofIdx != 0) {
|
||||
#if DUNE_VERSION_NEWER(DUNE_COMMON, 2,4)
|
||||
unsigned globalCenterElemIdx = elementMapper.index(stencil.entity(localDofIdx));
|
||||
unsigned globalCenterElemIdx = elementMapper.index(stencil.entity(/*dofIdx=*/0));
|
||||
#else
|
||||
unsigned globalCenterElemIdx = elementMapper.map(stencil.entity(localDofIdx));
|
||||
unsigned globalCenterElemIdx = elementMapper.map(stencil.entity(/*dofIdx=*/0));
|
||||
#endif
|
||||
dofData.transmissibility = transmissibilities_.transmissibility(globalCenterElemIdx, globalElemIdx);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user