mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-07-07 04:53:03 -05:00
WellFilterCake: use appropriate Scalar type
This commit is contained in:
parent
ca6b73a6f8
commit
db2db4bab5
|
@ -69,7 +69,7 @@ updateFiltrationParticleVolume(const WellInterfaceGeneric<Scalar>& well,
|
|||
const std::size_t np = well_state.numPhases();
|
||||
for (int perf = 0; perf < well.numPerfs(); ++perf) {
|
||||
// not considering the production water
|
||||
const Scalar water_rates = std::max(0., connection_rates[perf * np + water_index]);
|
||||
const Scalar water_rates = std::max(Scalar{0.}, connection_rates[perf * np + water_index]);
|
||||
const Scalar filtrate_rate = water_rates * conc;
|
||||
filtration_particle_volume_[perf] += filtrate_rate * dt;
|
||||
ws.perf_data.filtrate_data.rates[perf] = filtrate_rate;
|
||||
|
|
Loading…
Reference in New Issue
Block a user