mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
changed: do all advanceTracerFields in one call
by looping over the tracer batches
This commit is contained in:
parent
a2c5ec1127
commit
2c06152086
@ -172,9 +172,7 @@ public:
|
|||||||
if (this->numTracers()==0)
|
if (this->numTracers()==0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
advanceTracerFields(wat_);
|
advanceTracerFields();
|
||||||
advanceTracerFields(oil_);
|
|
||||||
advanceTracerFields(gas_);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -404,11 +402,11 @@ protected:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class TrRe>
|
void advanceTracerFields()
|
||||||
void advanceTracerFields(TrRe & tr)
|
|
||||||
{
|
{
|
||||||
|
for (auto& tr : tbatch) {
|
||||||
if (tr.numTracer() == 0)
|
if (tr.numTracer() == 0)
|
||||||
return;
|
continue;
|
||||||
|
|
||||||
// Note that we solve for a concentration update (compared to previous time step)
|
// Note that we solve for a concentration update (compared to previous time step)
|
||||||
// Confer also assembleTracerEquations_(...) above.
|
// Confer also assembleTracerEquations_(...) above.
|
||||||
@ -471,6 +469,7 @@ protected:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Simulator& simulator_;
|
Simulator& simulator_;
|
||||||
|
Loading…
Reference in New Issue
Block a user