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
2fe49bd0
Commit
2fe49bd0
authored
Sep 12, 2013
by
Uwe Schulzweida
Browse files
renamed zaxisXXXReference() to zaxisXXXNumber()
parent
37ab3715
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/cdi.h
View file @
2fe49bd0
...
...
@@ -820,8 +820,11 @@ void zaxisDefLevel(int zaxisID, int levelID, double levels);
/* zaxisInqLevel: Get one level of a Z-axis */
double
zaxisInqLevel
(
int
zaxisID
,
int
levelID
);
/* zaxisDefReference: Define the reference of a generalized Z-axis */
void
zaxisDefReference
(
int
zaxisID
,
int
refID
);
/* zaxisDefNumber: Define the reference number of a generalized Z-axis */
void
zaxisDefNumber
(
int
gridID
,
int
number
);
/* zaxisInqNumber: Get the reference number of a generalized Z-axis */
int
zaxisInqNumber
(
int
gridID
);
/* zaxisDefUUID: Define the uuid of a generalized Z-axis */
void
zaxisDefUUID
(
int
zaxisID
,
const
char
*
uuid_cbuf
);
...
...
@@ -829,9 +832,6 @@ void zaxisDefUUID(int zaxisID, const char *uuid_cbuf);
/* zaxisInqUUID: Get the reference of a generalized Z-axis */
char
*
zaxisInqUUID
(
int
zaxisID
,
char
*
uuid_cbuf
);
/* zaxisInqReference: Get the reference of a generalized Z-axis */
int
zaxisInqReference
(
int
zaxisID
);
/* zaxisDefName: Define the name of a Z-axis */
void
zaxisDefName
(
int
zaxisID
,
const
char
*
name
);
...
...
src/model.c
View file @
2fe49bd0
...
...
@@ -103,7 +103,7 @@ void modelDefaultEntries ( void )
instID
=
institutInq
(
0
,
1
,
"NCEP"
,
NULL
);
resH
[
9
]
=
modelDef
(
instID
,
80
,
"T62L28MRF"
);
for
(
i
=
0
;
i
<
10
;
i
++
)
reshSetStatus
(
resH
[
i
],
&
modelOps
,
SUSPENDED
);
}
...
...
src/zaxis.c
View file @
2fe49bd0
...
...
@@ -78,7 +78,7 @@ typedef struct {
int
direction
;
int
vctsize
;
double
*
vct
;
int
reference
;
int
number
;
/* Reference number to a generalized Z-axis */
char
uuid
[
17
];
}
zaxis_t
;
...
...
@@ -116,7 +116,7 @@ void zaxisDefaultValue ( zaxis_t *zaxisptr )
zaxisptr
->
size
=
0
;
zaxisptr
->
vctsize
=
0
;
zaxisptr
->
vct
=
NULL
;
zaxisptr
->
reference
=
CDI_UNDEFID
;
zaxisptr
->
number
=
0
;
zaxisptr
->
uuid
[
0
]
=
0
;
}
...
...
@@ -681,20 +681,20 @@ void zaxisDefLevel(int zaxisID, int levelID, double level)
}
/*
@Function zaxisDef
Reference
@Title Define the reference for a genralized Z-axis
@Function zaxisDef
Number
@Title Define the reference
number
for a gen
e
ralized Z-axis
@Prototype void zaxisDef
Reference
(int zaxisID, const int
reference
)
@Prototype void zaxisDef
Number
(int zaxisID, const int
number
)
@Parameter
@Item zaxisID Z-axis ID, from a previous call to @fref{zaxisCreate}.
@Item
reference
Reference for a generalized Z-axis.
@Item
number
Reference
number
for a generalized Z-axis.
@Description
The function @func{zaxisDef
Reference
} defines the reference for a generalized
Z-axis.
The function @func{zaxisDef
Number
} defines the reference
number
for a generalized Z-axis.
@EndFunction
*/
void
zaxisDef
Reference
(
int
zaxisID
,
const
int
reference
)
void
zaxisDef
Number
(
int
zaxisID
,
const
int
number
)
{
zaxis_t
*
zaxisptr
;
...
...
@@ -708,7 +708,7 @@ void zaxisDefReference(int zaxisID, const int reference)
zaxis_check_ptr
(
zaxisID
,
zaxisptr
);
zaxisptr
->
reference
=
reference
;
zaxisptr
->
number
=
number
;
}
/*
...
...
@@ -773,32 +773,32 @@ char *zaxisInqUUID(int zaxisID, char *uuid)
}
/*
@Function zaxisInq
Reference
@Title Get the reference to a generalized Z-axis.
@Function zaxisInq
Number
@Title Get the reference
number
to a generalized Z-axis.
@Prototype int zaxisInq
Reference
(int zaxisID)
@Prototype int zaxisInq
Number
(int zaxisID)
@Parameter
@Item zaxisID Z-axis ID, from a previous call to @fref{zaxisCreate}.
@Description
The function @func{zaxisInq
Reference
} returns the reference to a generalized Z-axis.
The function @func{zaxisInq
Number
} returns the reference
number
to a generalized Z-axis.
@Result
@func{zaxisInq
Reference
} returns the reference to a generalized Z-axis.
@func{zaxisInq
NUmber
} returns the reference
number
to a generalized Z-axis.
@EndFunction
*/
int
zaxisInq
Reference
(
int
zaxisID
)
int
zaxisInq
Number
(
int
zaxisID
)
{
int
reference
=
-
1
;
int
number
=
-
1
;
zaxis_t
*
zaxisptr
;
zaxisptr
=
(
zaxis_t
*
)
reshGetVal
(
zaxisID
,
&
zaxisOps
);
zaxis_check_ptr
(
zaxisID
,
zaxisptr
);
reference
=
zaxisptr
->
reference
;
number
=
zaxisptr
->
number
;
return
(
reference
);
return
(
number
);
}
/*
...
...
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