mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-12 17:02:02 -05:00
Fill vector with zeros as constructed
This commit is contained in:
1 parent
60a6451a6f
commit
83bcd24108
1 file changed
+1
-2
@@ -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")) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user