projects
/
debian
/
openrocket
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updates for 0.9.5
[debian/openrocket]
/
src
/
net
/
sf
/
openrocket
/
motor
/
Motor.java
diff --git
a/src/net/sf/openrocket/motor/Motor.java
b/src/net/sf/openrocket/motor/Motor.java
index ce746d332ab24b434557bd1f28f8fb14ffdb0c77..7d3be842fba2f055f3211843e92d6a4b847ac9c2 100644
(file)
--- a/
src/net/sf/openrocket/motor/Motor.java
+++ b/
src/net/sf/openrocket/motor/Motor.java
@@
-6,6
+6,7
@@
import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
+import net.sf.openrocket.util.BugException;
import net.sf.openrocket.util.Coordinate;
import net.sf.openrocket.util.MathUtil;
import net.sf.openrocket.util.Coordinate;
import net.sf.openrocket.util.MathUtil;
@@
-282,7
+283,7
@@
public abstract class Motor implements Comparable<Motor> {
avgTime *= time/(DIVISIONS+1);
if (Double.isNaN(avgTime))
avgTime *= time/(DIVISIONS+1);
if (Double.isNaN(avgTime))
- throw new
Runtime
Exception("Calculated avg. time is NaN for motor "+this);
+ throw new
Bug
Exception("Calculated avg. time is NaN for motor "+this);
}
return avgTime;
}
return avgTime;
@@
-315,7
+316,7
@@
public abstract class Motor implements Comparable<Motor> {
avgThrust /= points;
if (Double.isNaN(avgThrust))
avgThrust /= points;
if (Double.isNaN(avgThrust))
- throw new
Runtime
Exception("Calculated average thrust is NaN for motor "+this);
+ throw new
Bug
Exception("Calculated average thrust is NaN for motor "+this);
}
return avgThrust;
}
}
return avgThrust;
}
@@
-346,7
+347,7
@@
public abstract class Motor implements Comparable<Motor> {
}
if (Double.isNaN(totalImpulse))
}
if (Double.isNaN(totalImpulse))
- throw new
Runtime
Exception("Calculated total impulse is NaN for motor "+this);
+ throw new
Bug
Exception("Calculated total impulse is NaN for motor "+this);
}
return totalImpulse;
}
}
return totalImpulse;
}