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
f7ee4f43
Commit
f7ee4f43
authored
Jan 21, 2020
by
Uwe Schulzweida
Browse files
printGridNp: replaced np= by F/N.
parent
33624f8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/printinfo.c
View file @
f7ee4f43
...
...
@@ -257,15 +257,18 @@ print_xyvals2D(int gridID, int dig)
static
void
printGridNp
(
int
gridtype
,
int
gridID
,
size_t
gridsize
,
size_t
xsize
,
size_t
ysize
)
{
size_t
xysize
=
xsize
*
ysize
;
fprintf
(
stdout
,
"points=%zu"
,
gridsize
);
if
(
gridtype
==
GRID_GAUSSIAN_REDUCED
)
fprintf
(
stdout
,
" nlat=%zu"
,
ysize
);
else
if
(
xysize
)
else
if
(
x
size
&&
ysize
)
fprintf
(
stdout
,
" (%zux%zu)"
,
xsize
,
ysize
);
if
(
gridtype
==
GRID_GAUSSIAN
||
gridtype
==
GRID_GAUSSIAN_REDUCED
)
fprintf
(
stdout
,
" np=%d"
,
gridInqNP
(
gridID
));
const
int
numLPE
=
gridInqNP
(
gridID
);
if
(
numLPE
>
0
)
{
if
(
gridtype
==
GRID_GAUSSIAN
)
fprintf
(
stdout
,
" F%d"
,
numLPE
);
if
(
gridtype
==
GRID_GAUSSIAN_REDUCED
)
fprintf
(
stdout
,
" N%d"
,
numLPE
);
}
fprintf
(
stdout
,
"
\n
"
);
}
...
...
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