Browse Source

Added error message when experiment step value is too big.

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@69 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 20 years ago
parent
commit
aace5f0aed
  1. 1
      prism/src/prism/DefinedConstant.java

1
prism/src/prism/DefinedConstant.java

@ -163,6 +163,7 @@ public class DefinedConstant
catch (NumberFormatException e) { catch (NumberFormatException e) {
throw new PrismException("Value \"" + ss + "\" for constant \"" + name + "\" is not a valid double"); throw new PrismException("Value \"" + ss + "\" for constant \"" + name + "\" is not a valid double");
} }
if (ds > dh-dl) throw new PrismException("Step value "+ds+" is bigger than the difference between "+dl+" and "+dh);
} }
} }
// compute num steps // compute num steps

Loading…
Cancel
Save