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
libcdi
Commits
3f8e38ad
Commit
3f8e38ad
authored
Dec 07, 2015
by
Thomas Jahns
🤸
Browse files
Move copying of area data to gridGenerate.
parent
bd13696a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/grid.c
View file @
3f8e38ad
...
...
@@ -2611,14 +2611,6 @@ static void gridComplete(grid_t *grid)
gridDefAngle
(
gridID
,
grid
->
angle
);
}
const
double
*
grid_area
=
grid
->
vtable
->
inqAreaPtr
((
grid_t
*
)
grid
);
if
(
grid_area
)
{
const
double
*
area
=
grid
->
area
;
grid
->
area
=
NULL
;
gridDefArea
(
gridID
,
area
);
}
switch
(
gridtype
)
{
case
GRID_LAEA
:
...
...
@@ -2782,7 +2774,8 @@ int gridGenerate(const grid_t *grid)
gridptr
->
xpole
=
grid
->
xpole
;
gridptr
->
ypole
=
grid
->
ypole
;
gridptr
->
angle
=
grid
->
angle
;
gridptr
->
area
=
grid
->
area
;
if
(
valdef_group1
&&
grid
->
area
)
gridDefArea
(
gridID
,
grid
->
area
);
gridptr
->
laea_a
=
grid
->
laea_a
;
gridptr
->
laea_lon_0
=
grid
->
laea_lon_0
;
gridptr
->
laea_lat_0
=
grid
->
laea_lat_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