mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Remove unused code branch.
This commit is contained in:
parent
657f4f5b8e
commit
66a1c46413
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user