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
cb3252e9
Commit
cb3252e9
authored
11 years ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
Move streamWriteVarPart to pio_interface.c.
parent
afac9e41
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/pio_interface.c
+31
-1
31 additions, 1 deletion
src/pio_interface.c
src/stream.c
+0
-36
0 additions, 36 deletions
src/stream.c
with
31 additions
and
37 deletions
src/pio_interface.c
+
31
−
1
View file @
cb3252e9
...
...
@@ -28,7 +28,6 @@
#include
"cdi_int.h"
#include
"vlist.h"
extern
resOps
streamOps
;
...
...
@@ -991,6 +990,37 @@ void pioWriteTimestep ( int tsID, int vdate, int vtime )
#endif
}
#if defined USE_MPI
void
streamWriteVarPart
(
int
streamID
,
int
varID
,
int
memtype
,
const
void
*
data
,
int
nmiss
,
Xt_idxlist
partDesc
)
{
if
(
CDI_Debug
)
Message
(
"streamID = %d varID = %d"
,
streamID
,
varID
);
check_parg
(
data
);
if
(
namespaceHasLocalFile
(
namespaceGetActive
()))
xabort
(
"local part writing is unsupported!"
);
switch
(
namespaceInqResStatus
())
{
case
STAGE_DEFINITION
:
xabort
(
"DEFINITION STAGE: PARALLEL WRITING NOT POSSIBLE."
);
break
;
case
STAGE_TIMELOOP
:
pioBufferPartData
(
streamID
,
varID
,
data
,
nmiss
,
partDesc
);
return
;
case
STAGE_CLEANUP
:
xabort
(
"CLEANUP STAGE: PARALLEL WRITING NOT POSSIBLE."
);
break
;
default:
xabort
(
"INTERNAL ERROR"
);
}
}
#endif
/*
* Local Variables:
* c-file-style: "Java"
...
...
This diff is collapsed.
Click to expand it.
src/stream.c
+
0
−
36
View file @
cb3252e9
...
...
@@ -31,13 +31,6 @@
#include
<string.h>
#ifdef USE_MPI
#include
<yaxt.h>
#else
typedef
struct
Xt_idxlist_
*
Xt_idxlist
;
#endif
#define MAX_FNAMES 3
extern
resOps
streamOps
;
...
...
@@ -1670,35 +1663,6 @@ cdiStreamWriteVar_(int streamID, int varID, int memtype, const void *data,
}
}
void
streamWriteVarPart
(
int
streamID
,
int
varID
,
int
memtype
,
const
void
*
data
,
int
nmiss
,
Xt_idxlist
partDesc
)
{
#if defined USE_MPI
if
(
CDI_Debug
)
Message
(
"streamID = %d varID = %d"
,
streamID
,
varID
);
check_parg
(
data
);
if
(
namespaceHasLocalFile
(
namespaceGetActive
()))
xabort
(
"local part writing is unsupported!"
);
switch
(
namespaceInqResStatus
())
{
case
STAGE_DEFINITION
:
xabort
(
"DEFINITION STAGE: PARALLEL WRITING NOT POSSIBLE."
);
break
;
case
STAGE_TIMELOOP
:
pioBufferPartData
(
streamID
,
varID
,
data
,
nmiss
,
partDesc
);
return
;
case
STAGE_CLEANUP
:
xabort
(
"CLEANUP STAGE: PARALLEL WRITING NOT POSSIBLE."
);
break
;
default:
xabort
(
"INTERNAL ERROR"
);
}
#endif
}
/*
@Function streamWriteVarF
@Title Write a variable
...
...
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