some minor cleaning up

This commit is contained in:
Kai Bao
2019-04-12 10:43:30 +02:00
parent af9a500b98
commit 1d7089fca8
3 changed files with 8 additions and 12 deletions
+1 -3
View File
@@ -687,8 +687,6 @@ namespace Opm {
// Set the well primary variables based on the value of well solutions // Set the well primary variables based on the value of well solutions
initPrimaryVariablesEvaluation(); initPrimaryVariablesEvaluation();
std::vector< Scalar > B_avg(numComponents(), Scalar() ); std::vector< Scalar > B_avg(numComponents(), Scalar() );
computeAverageFormationFactor(B_avg); computeAverageFormationFactor(B_avg);
@@ -708,6 +706,7 @@ namespace Opm {
// basically, this is a more updated state from the solveWellEq based on fixed // 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? // reservoir state, will tihs be a better place to inialize the explict information?
} }
assembleWellEq(B_avg, dt, local_deferredLogger); assembleWellEq(B_avg, dt, local_deferredLogger);
} catch (std::exception& e) { } catch (std::exception& e) {
@@ -889,7 +888,6 @@ namespace Opm {
bool converged; bool converged;
int exception_thrown = 0; int exception_thrown = 0;
do { do {
try { try {
assembleWellEq(B_avg, dt, deferred_logger); assembleWellEq(B_avg, dt, deferred_logger);
} catch (std::exception& e) { } catch (std::exception& e) {
+1 -3
View File
@@ -556,7 +556,6 @@ namespace Opm
{ {
BVectorWell xw(1); BVectorWell xw(1);
recoverSolutionWell(x, xw); recoverSolutionWell(x, xw);
updateWellState(xw, well_state, deferred_logger); updateWellState(xw, well_state, deferred_logger);
} }
@@ -1333,8 +1332,7 @@ namespace Opm
const bool upwinding, const bool upwinding,
int& seg_upwind) const 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.) ) { if ((!upwinding) || (well_type_ == INJECTOR) || (primary_variables_evaluation_[seg][GTotal] <= 0.) ) {
seg_upwind = seg; // using the composition from the seg seg_upwind = seg; // using the composition from the seg