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
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) {
+1 -3
View File
@@ -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