mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
adding some comments for later implementation.
This commit is contained in:
parent
b6d324c95e
commit
bafe292af0
@ -341,6 +341,11 @@ namespace Opm
|
|||||||
invDX(MatrixType D, VectorType x)
|
invDX(MatrixType D, VectorType x)
|
||||||
{
|
{
|
||||||
// TODO: checking the problem related to use reference parameter
|
// TODO: checking the problem related to use reference parameter
|
||||||
|
|
||||||
|
// TODO: store some of the following information to avoid to call it again and again for
|
||||||
|
// efficiency improvement.
|
||||||
|
// Bassically, only the solve / apply step is different.
|
||||||
|
|
||||||
VectorType y(x.size());
|
VectorType y(x.size());
|
||||||
y = 0.;
|
y = 0.;
|
||||||
Dune::MatrixAdapter<MatrixType, VectorType, VectorType> linearOperator(D);
|
Dune::MatrixAdapter<MatrixType, VectorType, VectorType> linearOperator(D);
|
||||||
|
@ -301,7 +301,7 @@ public:
|
|||||||
// handling MS well related
|
// handling MS well related
|
||||||
for (const auto& well : wells_ecl) {
|
for (const auto& well : wells_ecl) {
|
||||||
if (well->isMultiSegment(timer.currentStepNum())) { // there is one well is MS well
|
if (well->isMultiSegment(timer.currentStepNum())) { // there is one well is MS well
|
||||||
well_state.initMSWell(wells, wells_ecl, timer.currentStepNum());
|
well_state.initWellStateMSWell(wells, wells_ecl, timer.currentStepNum());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,7 @@ namespace Opm
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// init the MS well related.
|
/// init the MS well related.
|
||||||
void initMSWell(const Wells* wells, const std::vector<const Well*>& wells_ecl, const int time_step)
|
void initWellStateMSWell(const Wells* wells, const std::vector<const Well*>& wells_ecl, const int time_step)
|
||||||
{
|
{
|
||||||
// still using the order in wells
|
// still using the order in wells
|
||||||
const int nw = wells->number_of_wells;
|
const int nw = wells->number_of_wells;
|
||||||
|
Loading…
Reference in New Issue
Block a user