Add return pump update in reactor state change
This commit is contained in:
@@ -228,6 +228,10 @@ class Reactor {
|
|||||||
}
|
}
|
||||||
this.currentTime += n_iter * this.timeStep * DAY2MS / this.speedUpFactor;
|
this.currentTime += n_iter * this.timeStep * DAY2MS / this.speedUpFactor;
|
||||||
this.emitter.emit("stateChange", this.currentTime);
|
this.emitter.emit("stateChange", this.currentTime);
|
||||||
|
|
||||||
|
if (this.returnPump) {
|
||||||
|
this.returnPump.updateSourceSink();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user