Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
libcdi
Commits
ab5bea30
Commit
ab5bea30
authored
10 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
docu update
parent
8e848cdb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/stream_record.c
+29
-2
29 additions, 2 deletions
src/stream_record.c
with
29 additions
and
2 deletions
src/stream_record.c
+
29
−
2
View file @
ab5bea30
...
...
@@ -151,7 +151,20 @@ void streamInqRecord(int streamID, int *varID, int *levelID)
streamptr
->
tsteps
[
tsID
].
curRecID
=
rindex
;
}
/*
@Function streamDefRecord
@Title Define the next record
@Prototype void streamDefRecord(int streamID, int varID, int levelID)
@Parameter
@Item streamID Stream ID, from a previous call to @fref{streamOpenWrite}.
@Item varID Variable identifier.
@Item levelID Level identifier.
@Description
The function streamDefRecord defines the meta-data of the next record.
@EndFunction
*/
void
streamDefRecord
(
int
streamID
,
int
varID
,
int
levelID
)
{
stream_t
*
streamptr
=
stream_to_pointer
(
streamID
);
...
...
@@ -323,7 +336,21 @@ stream_write_record(int streamID, int memtype, const void *data, int nmiss)
}
}
/*
@Function streamWriteRecord
@Title Write a horizontal slice of a variable
@Prototype void streamWriteRecord(int streamID, const double *data, int nmiss)
@Parameter
@Item streamID Stream ID, from a previous call to @fref{streamOpenWrite}.
@Item data Pointer to a block of double precision floating point data values to be written.
@Item nmiss Number of missing values.
@Description
The function streamWriteRecord writes the values of a horizontal slice (record) of a variable to an open dataset.
The values are converted to the external data type of the variable, if necessary.
@EndFunction
*/
void
streamWriteRecord
(
int
streamID
,
const
double
*
data
,
int
nmiss
)
{
stream_write_record
(
streamID
,
MEMTYPE_DOUBLE
,
(
const
void
*
)
data
,
nmiss
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment