mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
some minor cleaning up
This commit is contained in:
@@ -687,8 +687,6 @@ namespace Opm {
|
||||
// Set the well primary variables based on the value of well solutions
|
||||
initPrimaryVariablesEvaluation();
|
||||
|
||||
|
||||
|
||||
std::vector< Scalar > B_avg(numComponents(), Scalar() );
|
||||
computeAverageFormationFactor(B_avg);
|
||||
|
||||
@@ -708,6 +706,7 @@ namespace Opm {
|
||||
// basically, this is a more updated state from the solveWellEq based on fixed
|
||||
// reservoir state, will tihs be a better place to inialize the explict information?
|
||||
}
|
||||
|
||||
assembleWellEq(B_avg, dt, local_deferredLogger);
|
||||
|
||||
} catch (std::exception& e) {
|
||||
@@ -889,7 +888,6 @@ namespace Opm {
|
||||
bool converged;
|
||||
int exception_thrown = 0;
|
||||
do {
|
||||
|
||||
try {
|
||||
assembleWellEq(B_avg, dt, deferred_logger);
|
||||
} catch (std::exception& e) {
|
||||
|
||||
@@ -556,7 +556,6 @@ namespace Opm
|
||||
{
|
||||
BVectorWell xw(1);
|
||||
recoverSolutionWell(x, xw);
|
||||
|
||||
updateWellState(xw, well_state, deferred_logger);
|
||||
}
|
||||
|
||||
@@ -1333,8 +1332,7 @@ namespace Opm
|
||||
const bool upwinding,
|
||||
int& seg_upwind) const
|
||||
{
|
||||
// not considering the injectors for now
|
||||
|
||||
// not considering upwinding for the injectors for now
|
||||
|
||||
if ((!upwinding) || (well_type_ == INJECTOR) || (primary_variables_evaluation_[seg][GTotal] <= 0.) ) {
|
||||
seg_upwind = seg; // using the composition from the seg
|
||||
|
||||
Reference in New Issue
Block a user