Commit c1d6f0b3 authored by Thomas Jahns's avatar 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
......@@ -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"
......
......@@ -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");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment