diff --git a/src/Polar.cpp b/src/Polar.cpp index 892f8c9f..0f973040 100644 --- a/src/Polar.cpp +++ b/src/Polar.cpp @@ -1002,7 +1002,7 @@ void Polar::CalculateVMG(int VWi) for(int i=0; i<4; i++) { double upwind = i < 2 ? 1 : -1; double maxVB = 0; - float maxW = NAN; + double maxW = NAN; unsigned int maxWi = 0; for(unsigned int Wi = 0; Wi < degree_steps.size(); Wi++) { double W = degree_steps[Wi]; diff --git a/src/RouteMap.cpp b/src/RouteMap.cpp index b527ce37..1a9ca328 100644 --- a/src/RouteMap.cpp +++ b/src/RouteMap.cpp @@ -637,8 +637,6 @@ bool Position::Propagate(IsoRouteList &routelist, RouteMapConfiguration &configu Position *points = NULL; /* through all angles relative to wind */ int count = 0; - bool boundary = false; - bool land = false; double S = Swell(configuration.grib, lat, lon); if(S > configuration.MaxSwellMeters) @@ -726,7 +724,7 @@ bool Position::Propagate(IsoRouteList &routelist, RouteMapConfiguration &configu tacked = true; } - double dlat, dlon, nrdlon; + double dlat, dlon; if(configuration.Integrator == RouteMapConfiguration::RUNGE_KUTTA) { double k2_dist, k2_BG, k3_dist, k3_BG, k4_dist, k4_BG; // a lot more experimentation is needed here, maybe use grib for the right time?? @@ -753,7 +751,6 @@ bool Position::Propagate(IsoRouteList &routelist, RouteMapConfiguration &configu } #endif - nrdlon = dlon; if(configuration.positive_longitudes && dlon < 0) dlon += 360; @@ -814,7 +811,7 @@ bool Position::Propagate(IsoRouteList &routelist, RouteMapConfiguration &configu if(configuration.DetectLand) { double ndlon1 = dlon1; if (ndlon1 > 360) { - ndlon1 -360; + ndlon1 -= 360; } if (CrossesLand(dlat1, ndlon1)) { configuration.land_crossing = true;