Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
562a1d39
Commit
562a1d39
authored
Oct 13, 2015
by
Uwe Schulzweida
Browse files
remap_define_reg2d: replace Realloc by Malloc
parent
fda6564b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/remaplib.c
View file @
562a1d39
...
...
@@ -607,8 +607,8 @@ void remap_define_reg2d(int gridID, remapgrid_t *grid)
if
(
grid
->
size
!=
nx
*
ny
)
cdoAbort
(
"Internal error, wrong dimensions!"
);
grid
->
reg2d_center_lon
=
(
double
*
)
Re
alloc
(
grid
->
reg2d_center_lon
,
nxm
*
sizeof
(
double
));
grid
->
reg2d_center_lat
=
(
double
*
)
Re
alloc
(
grid
->
reg2d_center_lat
,
ny
*
sizeof
(
double
));
grid
->
reg2d_center_lon
=
(
double
*
)
M
alloc
(
nxm
*
sizeof
(
double
));
grid
->
reg2d_center_lat
=
(
double
*
)
M
alloc
(
ny
*
sizeof
(
double
));
grid
->
reg2d_center_lon
[
0
]
=
0
;
grid
->
reg2d_center_lat
[
0
]
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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