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
38fea27e
Commit
38fea27e
authored
Jan 08, 2017
by
Uwe Schulzweida
Browse files
gridPrintKernel: removed paramter index.
parent
12015a1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/grid.c
View file @
38fea27e
...
...
@@ -3237,7 +3237,7 @@ void gridPrintAttributes(FILE *fp, int gridID)
}
static
void
gridPrintKernel
(
grid_t
*
gridptr
,
int
index
,
int
opt
,
FILE
*
fp
)
void
gridPrintKernel
(
grid_t
*
gridptr
,
int
opt
,
FILE
*
fp
)
{
int
xdim
,
ydim
;
unsigned
char
uuidOfHGrid
[
CDI_UUID_SIZE
];
...
...
@@ -3261,11 +3261,7 @@ void gridPrintKernel(grid_t *gridptr, int index, int opt, FILE *fp)
struct
gridaxis_t
*
xaxis
=
&
gridptr
->
x
;
struct
gridaxis_t
*
yaxis
=
&
gridptr
->
y
;
fprintf
(
fp
,
"#
\n
"
"# gridID %d
\n
"
"#
\n
"
"gridtype = %s
\n
"
"gridsize = %d
\n
"
,
index
,
gridNamePtr
(
type
),
gridsize
);
fprintf
(
fp
,
"gridtype = %s
\n
"
"gridsize = %d
\n
"
,
gridNamePtr
(
type
),
gridsize
);
if
(
type
!=
GRID_GME
)
{
...
...
@@ -3496,22 +3492,23 @@ void gridPrintKernel(grid_t *gridptr, int index, int opt, FILE *fp)
}
}
void
gridPrint
(
int
gridID
,
int
index
,
int
opt
)
void
gridPrint
(
int
gridID
,
int
index
,
int
opt
)
{
grid_t
*
gridptr
=
grid_to_pointer
(
gridID
);
gridPrintKernel
(
gridptr
,
index
,
opt
,
stdout
);
gridPrintKernel
(
gridptr
,
opt
,
stdout
);
}
void
gridPrintP
(
void
*
voidptr
,
FILE
*
fp
)
void
gridPrintP
(
void
*
voidptr
,
FILE
*
fp
)
{
grid_t
*
gridptr
=
(
grid_t
*
)
voidptr
;
grid_t
*
gridptr
=
(
grid_t
*
)
voidptr
;
xassert
(
gridptr
);
xassert
(
gridptr
);
gridPrintKernel
(
gridptr
,
gridptr
->
self
,
0
,
fp
);
gridPrintKernel
(
gridptr
,
0
,
fp
);
fprintf
(
fp
,
"precision = %d
\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