Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
c1d6f0b3
Commit
c1d6f0b3
authored
Apr 02, 2014
by
Thomas Jahns
🤸
Browse files
Fix headers/symbols used in example programs.
* It's no longer assumed that pio_util.h can be used in serial case.
parent
1d95d236
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/pio/collectData.c
View file @
c1d6f0b3
...
...
@@ -2,19 +2,23 @@
# include "config.h"
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef USE_MPI
#include <unistd.h>
#include <mpi.h>
#include <yaxt.h>
#include "pio_util.h"
#else
typedef
int
MPI_Comm
;
#define MPI_COMM_NULL 0
#endif
#include "cdi.h"
#include "
pio_util
.h"
#include "
error
.h"
#ifdef USE_MPI
#include "cdipio.h"
...
...
examples/pio/collectDataNStreams.c
View file @
c1d6f0b3
...
...
@@ -2,6 +2,9 @@
# include "config.h"
#endif
#include <stdio.h>
#include <string.h>
#ifdef USE_MPI
#include <mpi.h>
#else
...
...
@@ -10,10 +13,11 @@ typedef int MPI_Comm;
#endif
#include "cdi.h"
#include "
pio_util
.h"
#include "
error
.h"
#ifdef USE_MPI
#include "cdipio.h"
#include "pio_util.h"
#endif
static
void
hoursPassingHack
(
int
*
vdate
,
int
*
vtime
,
int
hoursPassed
)
...
...
@@ -217,7 +221,6 @@ static void modelRun(MPI_Comm commModel)
zaxisDestroy
(
zaxisID
[
i
][
j
]
);
gridDestroy
(
gridID
);
free
(
var
);
xdebug
(
"%s"
,
"RETURN"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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