mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 10:40:21 -06:00
Added initialization of max concentration.
This commit is contained in:
parent
a9a93d795e
commit
f8461eeec7
@ -405,8 +405,10 @@ main(int argc, char** argv)
|
|||||||
for (int cell = 0; cell < grid->c_grid()->number_of_cells; ++cell) {
|
for (int cell = 0; cell < grid->c_grid()->number_of_cells; ++cell) {
|
||||||
if (state.saturation()[2*cell] > 0) {
|
if (state.saturation()[2*cell] > 0) {
|
||||||
state.concentration()[cell] = poly_init;
|
state.concentration()[cell] = poly_init;
|
||||||
|
state.maxconcentration()[cell] = poly_init;
|
||||||
} else {
|
} else {
|
||||||
state.concentration()[cell] = 0.;
|
state.concentration()[cell] = 0.;
|
||||||
|
state.maxconcentration()[cell] = poly_init;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user