mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-02 20:30:55 -06:00
Merge pull request #6065 from akva2/fix_optional_deref
fixed: capture as optional
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -1861,7 +1861,7 @@ private:
|
||||
Entry{PhaseEntry{std::array{"BPPW"sv, "BPPO"sv, "BPPG"sv},
|
||||
[&simConfig = this->eclState_.getSimulationConfig(),
|
||||
&grav = this->simulator_.problem().gravity(),
|
||||
®ionAvgDensity = *this->regionAvgDensity_,
|
||||
®ionAvgDensity = this->regionAvgDensity_,
|
||||
&problem = this->simulator_.problem(),
|
||||
®ions = this->regions_](const unsigned phaseIdx, const Context& ectx)
|
||||
{
|
||||
@@ -1882,7 +1882,7 @@ private:
|
||||
ectx.elemCtx.primaryVars(ectx.dofIdx, /*timeIdx=*/0).pvtRegionIndex() + 1
|
||||
};
|
||||
|
||||
const auto density = regionAvgDensity.value("PVTNUM", phase, region);
|
||||
const auto density = regionAvgDensity->value("PVTNUM", phase, region);
|
||||
|
||||
const auto press = getValue(ectx.fs.pressure(phase.ix));
|
||||
const auto dz = problem.dofCenterDepth(ectx.globalDofIdx) - datum;
|
||||
|
||||
@@ -272,7 +272,7 @@ struct BlockExtractor
|
||||
std::for_each(
|
||||
blockData.begin(),
|
||||
blockData.end(),
|
||||
[&handlers, &extractors, &blockData](auto& bd_info)
|
||||
[&handlers, &extractors](auto& bd_info)
|
||||
{
|
||||
unsigned phase{};
|
||||
const auto& [key, cell] = bd_info.first;
|
||||
|
||||
Reference in new issue
Block a user