Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
f53677f6
Commit
f53677f6
authored
Jan 06, 2012
by
Uwe Schulzweida
Browse files
gridPrint: update for np
parent
980b851d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/grid.c
View file @
f53677f6
...
...
@@ -3300,6 +3300,8 @@ void gridPrint(int gridID, int opt)
case
GRID_CURVILINEAR
:
case
GRID_UNSTRUCTURED
:
{
if
(
type
==
GRID_GAUSSIAN
)
fprintf
(
fp
,
"np = %d
\n
"
,
gridptr
->
np
);
if
(
type
==
GRID_CURVILINEAR
||
type
==
GRID_UNSTRUCTURED
)
{
xdim
=
gridsize
;
...
...
@@ -3342,7 +3344,7 @@ void gridPrint(int gridID, int opt)
if
(
xsize
>
0
)
fprintf
(
fp
,
"xnpole = %g
\n
"
,
gridptr
->
xpole
);
if
(
ysize
>
0
)
fprintf
(
fp
,
"ynpole = %g
\n
"
,
gridptr
->
ypole
);
if
(
gridptr
->
angle
>
0
)
fprintf
(
fp
,
"angle = %g
\n
"
,
gridptr
->
angle
);
}
}
if
(
xvals
)
{
...
...
@@ -3460,7 +3462,7 @@ void gridPrint(int gridID, int opt)
case
GRID_GAUSSIAN_REDUCED
:
{
int
*
rowlon
;
fprintf
(
fp
,
"ysize = %d
\n
"
,
ysize
);
fprintf
(
fp
,
"ysize = %d
\n
"
,
ysize
);
nbyte0
=
fprintf
(
fp
,
"rowlon = %d "
,
ysize
);
nbyte
=
nbyte0
;
rowlon
=
(
int
*
)
malloc
(
ysize
*
sizeof
(
int
));
...
...
Write
Preview
Markdown
is supported
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