Skip to content

Commit

Permalink
Check for negative discriminant in time marcher point quadratic.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkfurtney committed Jul 16, 2017
1 parent 2354c65 commit 5a1e1db
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions skfmm/travel_time_marcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "travel_time_marcher.h"
#include "math.h"
#include "heap.h"
#include <stdexcept>

void travelTimeMarcher::initalizeFrozen()
{
Expand Down Expand Up @@ -82,9 +83,7 @@ double travelTimeMarcher::solveQuadratic(int i, const double &a,
}
else
{
return 0;
throw std::runtime_error("Negative discriminant in time marcher quadratic.");
}
return r0;
}


0 comments on commit 5a1e1db

Please sign in to comment.