Adds pump-off logic

This commit is contained in:
Patrick McDonagh
2017-02-22 14:57:56 -06:00
parent 88d30e5a9b
commit 6b60d0f806
5 changed files with 137 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ public class POC implements Runnable{
thisWell.setupFluidRatio(0.50, 0.50, 1.12);
thisWell.checkSafeties();
while (true) {
while (thisWell.getRunStatus() == Well.RUNSTATUS_RUNNING || thisWell.getRunStatus() == Well.RUNSTATUS_STARTING) {
// while (thisWell.getRunStatus() == Well.RUNSTATUS_RUNNING || thisWell.getRunStatus() == Well.RUNSTATUS_STARTING) {
for (int i = 0; i <= thisWell.sim.getLastFilledIndex(); i++) {
thisWell.eval(i);
@@ -52,7 +52,7 @@ public class POC implements Runnable{
e.printStackTrace();
}
}
}
// }
}
}