Browse Source

Undo accidental part of last commit.

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@5278 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 14 years ago
parent
commit
b796a1045c
  1. 9
      prism/src/simulator/Updater.java

9
prism/src/simulator/Updater.java

@ -323,14 +323,7 @@ public class Updater
if (modelType.choicesSumToOne() && Math.abs(sum - 1) > prism.getSumRoundOff()) {
throw new PrismLangException("Probabilities sum to " + sum + " in state " + state.toString(modulesFile), ups);
}
// Check if empty (e.g. due to all 0 probs/rates)
// Currently, PRISM treats this as an error
if (ch.size() == 0) {
String msg = modelType.probabilityOrRate();
msg += (ups.getNumUpdates() > 1) ? " values sum to " : " is ";
msg += "zero for update in state " + state.toString(modulesFile);
//throw new PrismLangException(msg, ups);
}
return ch;
}

Loading…
Cancel
Save