fix extra compiler warnings

this is only relevant people who are masochistic enough to go beyond
`-Wall`. (note that at this warning level, there is plenty of noise from
Dune and other upstream dependencies.)
This commit is contained in:
Andreas Lauser
2018-07-02 09:16:26 +02:00
parent fbb885f303
commit aed7e15d2e
6 changed files with 37 additions and 18 deletions

View File

@@ -551,20 +551,22 @@ public:
* saturated with a lower pressure than the remaining reservoir.
*/
template <class Context>
void constraints(Constraints& constraints, const Context& context,
unsigned spaceIdx, unsigned timeIdx) const
void constraints(Constraints& constraintValues,
const Context& context,
unsigned spaceIdx,
unsigned timeIdx) const
{
if (this->simulator().episodeIndex() == 1)
return; // no constraints during the "settle down" episode
const auto& pos = context.pos(spaceIdx, timeIdx);
if (isInjector_(pos)) {
constraints.setActive(true);
constraints.assignNaive(injectorFluidState_);
constraintValues.setActive(true);
constraintValues.assignNaive(injectorFluidState_);
}
else if (isProducer_(pos)) {
constraints.setActive(true);
constraints.assignNaive(producerFluidState_);
constraintValues.setActive(true);
constraintValues.assignNaive(producerFluidState_);
}
}