mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #1341 from totto82/fixTUNING
Only update TUNING after event
This commit is contained in:
commit
aab41f3df2
@ -255,7 +255,9 @@ public:
|
|||||||
// \Note: The sub stepping will require a copy of the state variables
|
// \Note: The sub stepping will require a copy of the state variables
|
||||||
if( adaptiveTimeStepping ) {
|
if( adaptiveTimeStepping ) {
|
||||||
if (param_.getDefault("use_TUNING", false)) {
|
if (param_.getDefault("use_TUNING", false)) {
|
||||||
adaptiveTimeStepping->updateTUNING(schedule().getTuning(), timer.currentStepNum());
|
if(events.hasEvent(ScheduleEvents::TUNING_CHANGE,timer.currentStepNum())) {
|
||||||
|
adaptiveTimeStepping->updateTUNING(schedule().getTuning(), timer.currentStepNum());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool event = events.hasEvent(ScheduleEvents::NEW_WELL, timer.currentStepNum()) ||
|
bool event = events.hasEvent(ScheduleEvents::NEW_WELL, timer.currentStepNum()) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user