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
17afa9e2
Commit
17afa9e2
authored
Jul 16, 2016
by
Uwe Schulzweida
Browse files
Added function cdiInqProj().
parent
4d7c3253
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cdi.h
View file @
17afa9e2
...
...
@@ -720,6 +720,9 @@ void gridDestroy(int gridID);
/* gridDuplicate: Duplicate a Grid */
int
gridDuplicate
(
int
gridID
);
/* gridInqProj: Get the projection ID of a Grid */
int
gridInqProj
(
int
gridID
);
/* gridInqType: Get the type of a Grid */
int
gridInqType
(
int
gridID
);
...
...
src/grid.c
View file @
17afa9e2
...
...
@@ -992,6 +992,13 @@ void gridInqYstdname(int gridID, char *ystdname)
ystdname
[
0
]
=
0
;
}
int
gridInqProj
(
int
gridID
)
{
grid_t
*
gridptr
=
gridID2Ptr
(
gridID
);
return
gridptr
->
proj
;
}
/*
@Function gridInqType
@Title Get the type of a Grid
...
...
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