mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Remove some shawowed variable warnings.
This commit is contained in:
parent
bc1bc90504
commit
e6c8f6985c
@ -1631,10 +1631,10 @@ updateSummaryRegionValues(const Inplace& inplace,
|
|||||||
// support the RPR__xxx summary keywords.
|
// support the RPR__xxx summary keywords.
|
||||||
{
|
{
|
||||||
auto get_vector = [&inplace]
|
auto get_vector = [&inplace]
|
||||||
(const auto& node,
|
(const auto& node_,
|
||||||
const Inplace::Phase phase)
|
const Inplace::Phase phase_)
|
||||||
{
|
{
|
||||||
return inplace.get_vector(node.fip_region(), phase);
|
return inplace.get_vector(node_.fip_region(), phase_);
|
||||||
};
|
};
|
||||||
|
|
||||||
for (const auto& phase : Inplace::phases()) {
|
for (const auto& phase : Inplace::phases()) {
|
||||||
|
@ -168,7 +168,7 @@ public:
|
|||||||
m_packSize += Mpi::packSize(d, m_comm);
|
m_packSize += Mpi::packSize(d, m_comm);
|
||||||
};
|
};
|
||||||
|
|
||||||
auto pack = [&](auto& d) {
|
auto packer = [&](auto& d) {
|
||||||
Mpi::pack(d, m_buffer, m_position, m_comm);
|
Mpi::pack(d, m_buffer, m_position, m_comm);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -177,7 +177,7 @@ public:
|
|||||||
std::visit( [&] (auto& arg) { pack_size(arg); }, data);
|
std::visit( [&] (auto& arg) { pack_size(arg); }, data);
|
||||||
} else if (m_op == Operation::PACK) {
|
} else if (m_op == Operation::PACK) {
|
||||||
Mpi::pack(data.index(), m_buffer, m_position, m_comm);
|
Mpi::pack(data.index(), m_buffer, m_position, m_comm);
|
||||||
std::visit([&](auto& arg) { pack(arg); }, data);
|
std::visit([&](auto& arg) { packer(arg); }, data);
|
||||||
} else if (m_op == Operation::UNPACK) {
|
} else if (m_op == Operation::UNPACK) {
|
||||||
size_t index;
|
size_t index;
|
||||||
std::variant<T0,T1>& mutable_data = const_cast<std::variant<T0,T1>&>(data);
|
std::variant<T0,T1>& mutable_data = const_cast<std::variant<T0,T1>&>(data);
|
||||||
|
Loading…
Reference in New Issue
Block a user