mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Make prepareStep() parameters const.
This commit is contained in:
@@ -164,8 +164,8 @@ namespace Opm {
|
|||||||
/// \param[in, out] reservoir_state reservoir state variables
|
/// \param[in, out] reservoir_state reservoir state variables
|
||||||
/// \param[in, out] well_state well state variables
|
/// \param[in, out] well_state well state variables
|
||||||
void prepareStep(const double dt,
|
void prepareStep(const double dt,
|
||||||
ReservoirState& reservoir_state,
|
const ReservoirState& reservoir_state,
|
||||||
WellState& well_state);
|
const WellState& well_state);
|
||||||
|
|
||||||
/// Called once per nonlinear iteration.
|
/// Called once per nonlinear iteration.
|
||||||
/// This model will perform a Newton-Raphson update, changing reservoir_state
|
/// This model will perform a Newton-Raphson update, changing reservoir_state
|
||||||
|
|||||||
@@ -258,8 +258,8 @@ namespace detail {
|
|||||||
void
|
void
|
||||||
BlackoilModelBase<Grid, WellModel, Implementation>::
|
BlackoilModelBase<Grid, WellModel, Implementation>::
|
||||||
prepareStep(const double dt,
|
prepareStep(const double dt,
|
||||||
ReservoirState& reservoir_state,
|
const ReservoirState& reservoir_state,
|
||||||
WellState& /* well_state */)
|
const WellState& /* well_state */)
|
||||||
{
|
{
|
||||||
pvdt_ = geo_.poreVolume() / dt;
|
pvdt_ = geo_.poreVolume() / dt;
|
||||||
if (active_[Gas]) {
|
if (active_[Gas]) {
|
||||||
|
|||||||
@@ -97,8 +97,8 @@ namespace Opm {
|
|||||||
/// \param[in, out] reservoir_state reservoir state variables
|
/// \param[in, out] reservoir_state reservoir state variables
|
||||||
/// \param[in, out] well_state well state variables
|
/// \param[in, out] well_state well state variables
|
||||||
void prepareStep(const double dt,
|
void prepareStep(const double dt,
|
||||||
ReservoirState& reservoir_state,
|
const ReservoirState& reservoir_state,
|
||||||
WellState& well_state);
|
const WellState& well_state);
|
||||||
|
|
||||||
/// Called once after each time step.
|
/// Called once after each time step.
|
||||||
/// \param[in] dt time step size
|
/// \param[in] dt time step size
|
||||||
|
|||||||
@@ -122,8 +122,8 @@ namespace Opm {
|
|||||||
void
|
void
|
||||||
BlackoilPolymerModel<Grid>::
|
BlackoilPolymerModel<Grid>::
|
||||||
prepareStep(const double dt,
|
prepareStep(const double dt,
|
||||||
ReservoirState& reservoir_state,
|
const ReservoirState& reservoir_state,
|
||||||
WellState& well_state)
|
const WellState& well_state)
|
||||||
{
|
{
|
||||||
Base::prepareStep(dt, reservoir_state, well_state);
|
Base::prepareStep(dt, reservoir_state, well_state);
|
||||||
auto& max_concentration = reservoir_state.getCellData( reservoir_state.CMAX );
|
auto& max_concentration = reservoir_state.getCellData( reservoir_state.CMAX );
|
||||||
|
|||||||
Reference in New Issue
Block a user