Remove unused code branch.

This commit is contained in:
Atgeirr Flø Rasmussen 2022-06-30 10:20:18 +02:00
parent 657f4f5b8e
commit 66a1c46413

View File

@ -595,23 +595,6 @@ namespace Opm {
{ {
auto& model = ebosSimulator_.model(); auto& model = ebosSimulator_.model();
auto& ebosNewtonMethod = model.newtonMethod(); auto& ebosNewtonMethod = model.newtonMethod();
if(false){
if (!std::isfinite(dx.one_norm()))
throw NumericalIssue("Non-finite update!");
size_t numGridDof = model.numGridDof();
for (unsigned dofIdx = 0; dofIdx < numGridDof; ++dofIdx) {
ebosNewtonMethod.updatePrimaryVariables_(dofIdx,
solution[dofIdx],
solution[dofIdx],
dx[dofIdx],
dx[dofIdx]);
model.invalidateAndUpdateIntensiveSingleQuantitiesSimple(problem,
solution[dofIdx],
dofIdx,
/*timeIdx*/0);
}
}else{
ebosNewtonMethod.update_(/*nextSolution*/solution, ebosNewtonMethod.update_(/*nextSolution*/solution,
/*curSolution=*/solution, /*curSolution=*/solution,
/*update=*/dx, /*update=*/dx,
@ -622,7 +605,7 @@ namespace Opm {
solution, solution,
/*timeIdx*/0); /*timeIdx*/0);
} }
}
/// Apply an update to the primary variables. /// Apply an update to the primary variables.
void updateSolution(const BVector& dx) void updateSolution(const BVector& dx)