mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 10:40:21 -06:00
Added default concentration if guess_old_solution is false.
This commit is contained in:
parent
f8461eeec7
commit
6a12fe0208
@ -479,9 +479,11 @@ namespace Opm {
|
||||
} else {
|
||||
std::fill(x.begin(), x.end(), 0.0);
|
||||
const std::vector<double>& s = state.saturation();
|
||||
const std::vector<double>& c = state.concentration();
|
||||
for (int cell = 0, ncell = g.number_of_cells; cell < ncell; ++cell) {
|
||||
// Impose s=0.5 at next time level as an NR initial value.
|
||||
x[2*cell + 0] = 0.5 - s[2*cell + 0];
|
||||
x[2*cell + 1] = 1e-5 - c[cell];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user