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
85799729
Commit
85799729
authored
Jan 12, 2016
by
Thomas Jahns
🤸
Browse files
Re-align fields of grid_t.
parent
0c787e61
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/grid.c
View file @
85799729
...
...
@@ -3852,7 +3852,7 @@ void gridDefComplexPacking(int gridID, int lcomplex)
if
(
gridptr
->
lcomplex
!=
lcomplex
)
{
gridptr
->
lcomplex
=
lcomplex
;
gridptr
->
lcomplex
=
(
short
)(
lcomplex
!=
0
)
;
gridMark4Update
(
gridID
);
}
}
...
...
@@ -3870,9 +3870,9 @@ void gridDefHasDims(int gridID, int hasdims)
{
grid_t
*
gridptr
=
gridID2Ptr
(
gridID
);
if
(
gridptr
->
hasdims
!=
hasdims
)
if
(
gridptr
->
hasdims
!=
(
hasdims
!=
0
)
)
{
gridptr
->
hasdims
=
hasdims
;
gridptr
->
hasdims
=
hasdims
!=
0
;
gridMark4Update
(
gridID
);
}
}
...
...
@@ -4290,7 +4290,7 @@ gridUnpack(char * unpackBuffer, int unpackBufferSize,
gridP
->
size
=
intBuffer
[
21
];
gridP
->
xsize
=
intBuffer
[
22
];
gridP
->
ysize
=
intBuffer
[
23
];
gridP
->
lcomplex
=
intBuffer
[
24
];
gridP
->
lcomplex
=
(
short
)
intBuffer
[
24
];
memberMask
=
intBuffer
[
25
];
gridP
->
xstdname
=
xystdname_tab
[
intBuffer
[
26
]][
0
];
gridP
->
ystdname
=
xystdname_tab
[
intBuffer
[
27
]][
1
];
...
...
src/grid.h
View file @
85799729
...
...
@@ -94,8 +94,8 @@ struct grid_t {
int
xsize
;
/* number of values along X */
int
ysize
;
/* number of values along Y */
int
np
;
/* number of parallels between a pole and the equator */
int
lcomplex
;
int
hasdims
;
short
lcomplex
;
short
hasdims
;
const
char
*
xstdname
;
const
char
*
ystdname
;
char
xname
[
CDI_MAX_NAME
];
...
...
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