Skip to content
Snippets Groups Projects
Commit 8f48f889 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

grid_check_lat_borders_rad: changed limit from 90 to 88 degrees.

parent af2d4d60
No related branches found
No related tags found
No related merge requests found
......@@ -527,15 +527,16 @@ int expand_curvilinear_grid(int gridID)
static
void grid_check_lat_borders_rad(int n, double *ybounds)
{
#define YLIM (88*DEG2RAD)
if ( ybounds[0] > ybounds[n-1] )
{
if ( ybounds[0] > PIH ) ybounds[0] = PIH;
if ( ybounds[n-1] < -PIH ) ybounds[n-1] = -PIH;
if ( ybounds[0] > YLIM ) ybounds[0] = PIH;
if ( ybounds[n-1] < -YLIM ) ybounds[n-1] = -PIH;
}
else
{
if ( ybounds[0] < -PIH ) ybounds[0] = -PIH;
if ( ybounds[n-1] > PIH ) ybounds[n-1] = PIH;
if ( ybounds[0] < -YLIM ) ybounds[0] = -PIH;
if ( ybounds[n-1] > YLIM ) ybounds[n-1] = PIH;
}
}
......
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