mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
changed: only update primary variables in tracer update
no reason to update the extensive quantities
This commit is contained in:
@@ -397,7 +397,8 @@ protected:
|
|||||||
auto elemIt = simulator_.gridView().template begin</*codim=*/0>();
|
auto elemIt = simulator_.gridView().template begin</*codim=*/0>();
|
||||||
auto elemEndIt = simulator_.gridView().template end</*codim=*/0>();
|
auto elemEndIt = simulator_.gridView().template end</*codim=*/0>();
|
||||||
for (; elemIt != elemEndIt; ++ elemIt) {
|
for (; elemIt != elemEndIt; ++ elemIt) {
|
||||||
elemCtx.updateAll(*elemIt);
|
elemCtx.updatePrimaryStencil(*elemIt);
|
||||||
|
elemCtx.updatePrimaryIntensiveQuantities(/*timeIdx=*/0);
|
||||||
int globalDofIdx = elemCtx.globalSpaceIndex(0, /*timIdx=*/0);
|
int globalDofIdx = elemCtx.globalSpaceIndex(0, /*timIdx=*/0);
|
||||||
Scalar fVolume;
|
Scalar fVolume;
|
||||||
computeVolume_(fVolume, tr.phaseIdx_, elemCtx, 0, /*timIdx=*/0);
|
computeVolume_(fVolume, tr.phaseIdx_, elemCtx, 0, /*timIdx=*/0);
|
||||||
|
|||||||
Reference in New Issue
Block a user