Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
66613610
Commit
66613610
authored
Mar 12, 2010
by
Uwe Schulzweida
Browse files
gauaw: bug fix for allocation of zfnlat for odd number of nlat
parent
392d74bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
66613610
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
...
...
src/gaussgrid.c
View file @
66613610
...
...
@@ -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
++
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment