Commit e5cba6c9 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

gridGenYvals: bug fix [Bug #6373]

parent 131b10d1
......@@ -3,6 +3,10 @@
* Version 1.7.1 released
* using CGRIBEX library version 1.7.4
2015-12-10 Uwe Schulzweida
* gridGenYvals: bug fix [Bug #6373]
2015-11-25 Uwe Schulzweida
* cdfDefXaxis/cdfDefXaxis: generate bounds for CDI_cmor_mode
......
......@@ -423,7 +423,7 @@ void gridGenYvals(int gridtype, int ysize, double yfirst, double ylast, double y
{
double *restrict ytmp = NULL;
int nstart, lfound = 0;
int ny = (int) (180./fabs(ylast-yfirst)/(ysize-1) + 0.5);
int ny = (int) (180./(fabs(ylast-yfirst)/(ysize-1)) + 0.5);
ny -= ny%2;
if ( ny > ysize && ny < 4096 )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment