mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fill vector with zeros as constructed
This commit is contained in:
parent
60a6451a6f
commit
83bcd24108
@ -98,8 +98,7 @@ namespace Opm
|
||||
{
|
||||
// compute solvent inflow
|
||||
const int nw = wells->number_of_wells;
|
||||
std::vector<double> perfcells_fraction(wells->well_connpos[nw]);
|
||||
std::fill(perfcells_fraction.begin(), perfcells_fraction.end(), 0.0);
|
||||
std::vector<double> perfcells_fraction(wells->well_connpos[nw], 0.0);
|
||||
|
||||
if (deck_->hasKeyword("WSOLVENT")) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user