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

gauaw: bug fix for allocation of zfnlat for odd number of nlat

parent 392d74bc
2010-03-12 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* gauaw: bug fix for allocation of zfnlat for odd number of nlat
2010-03-04 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* cdfDefGrid: check whether the variable or dimension name already exist
......
......@@ -121,7 +121,7 @@ void gauaw(int kn, double *pl, double *pw)
iter = (int *) malloc(kn*sizeof(int));
zfn = (double *) malloc((kn+1)*(kn+1)*sizeof(double));
zfnlat = (double *) malloc((kn/2+1)*sizeof(double));
zfnlat = (double *) malloc((kn/2+1+1)*sizeof(double));
zfn[0] = M_SQRT2;
for (jn = 1; jn <= kn; jn++)
......
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