mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Pass number of fluid phases along with well data.
Needed to properly index into Wdata->phasemob. Update callers accordingly.
This commit is contained in:
@@ -110,7 +110,7 @@ namespace Opm
|
||||
}
|
||||
}
|
||||
|
||||
ifs_tpfa_forces F = { NULL, NULL, NULL, NULL };
|
||||
ifs_tpfa_forces F = { NULL, NULL, 0, NULL, NULL };
|
||||
if (! src.empty()) { F.src = &src[0]; }
|
||||
F.bc = bcs;
|
||||
|
||||
@@ -172,7 +172,7 @@ namespace Opm
|
||||
}
|
||||
}
|
||||
|
||||
ifs_tpfa_forces F = { NULL, NULL, NULL, NULL };
|
||||
ifs_tpfa_forces F = { NULL, NULL, 0, NULL, NULL };
|
||||
if (! src.empty()) { F.src = &src[0]; }
|
||||
F.bc = bcs;
|
||||
|
||||
|
||||
@@ -49,8 +49,9 @@ struct ifs_tpfa_forces {
|
||||
const double *src;
|
||||
const struct FlowBoundaryConditions *bc ;
|
||||
|
||||
const struct Wells *W ;
|
||||
const struct CompletionData *Wdata;
|
||||
int nphase; /* for Wdata->phasemob */
|
||||
const struct Wells *W ;
|
||||
const struct CompletionData *Wdata ;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user