Skip to content
Snippets Groups Projects
Commit 7cc209dc authored by Mark Jenkinson's avatar Mark Jenkinson
Browse files

Fixed possible crash with silly V

parent 94e5ae82
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,7 @@ Infer::Infer(float udLh, float ut, unsigned int uV) {
dLh = udLh;
t = ut;
V = uV;
if (V<=0.0) V=1.0;
if (fabs(t)<13.0) {
Em_ = V * pow(2*M_PI,-2) * dLh * (sqr(t) - 1) * exp(-sqr(t)/2.0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment