examples
- several simple fixes
This commit is contained in:
@@ -15,14 +15,6 @@
|
||||
#define FNAME "attach_file.h5"
|
||||
#define ATTACHMENT "attach_file"
|
||||
|
||||
#if !defined (PARALLEL_IO)
|
||||
#define MPI_Init(argc, argv)
|
||||
#define MPI_Comm_size(comm, nprocs) { *nprocs = 1; }
|
||||
#define MPI_Comm_rank(comm, myproc) { *myproc = 0; }
|
||||
#define MPI_Finalize()
|
||||
#define MPI_COMM_WORLD (0)
|
||||
#endif
|
||||
|
||||
int
|
||||
main (
|
||||
int argc,
|
||||
|
||||
@@ -9,14 +9,6 @@
|
||||
|
||||
#include "H5hut.h"
|
||||
|
||||
#if !defined (PARALLEL_IO)
|
||||
#define MPI_Init(argc, argv)
|
||||
#define MPI_Comm_size(comm, nprocs) { *nprocs = 1; }
|
||||
#define MPI_Comm_rank(comm, myproc) { *myproc = 0; }
|
||||
#define MPI_Finalize()
|
||||
#define MPI_COMM_WORLD (0)
|
||||
#endif
|
||||
|
||||
int
|
||||
main (
|
||||
int argc,
|
||||
|
||||
@@ -6,14 +6,6 @@
|
||||
|
||||
#include "H5hut.h"
|
||||
|
||||
#if !defined (PARALLEL_IO)
|
||||
#define MPI_Init(argc, argv)
|
||||
#define MPI_Comm_size(comm, nprocs) { *nprocs = 1; }
|
||||
#define MPI_Comm_rank(comm, myproc) { *myproc = 0; }
|
||||
#define MPI_Finalize()
|
||||
#define MPI_COMM_WORLD (0)
|
||||
#endif
|
||||
|
||||
const char* FNAME = "simple_tet.h5";
|
||||
|
||||
|
||||
|
||||
@@ -4,15 +4,6 @@
|
||||
|
||||
#include "H5hut.h"
|
||||
|
||||
#if !defined (PARALLEL_IO)
|
||||
#define MPI_Init(argc, argv)
|
||||
#define MPI_Comm_size(comm, nprocs) { *nprocs = 1; }
|
||||
#define MPI_Comm_rank(comm, myproc) { *myproc = 0; }
|
||||
#define MPI_Finalize()
|
||||
#define MPI_COMM_WORLD (0)
|
||||
#endif
|
||||
|
||||
|
||||
const char* FNAME = "simple_tet.h5";
|
||||
|
||||
typedef struct vertex {
|
||||
|
||||
@@ -50,5 +50,6 @@ main (
|
||||
// cleanup
|
||||
free (data);
|
||||
H5CloseFile (file);
|
||||
return MPI_Finalize ();
|
||||
MPI_Finalize ();
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ main (
|
||||
|
||||
// initialize MPI & H5hut
|
||||
MPI_Init (&argc, &argv);
|
||||
MPI_Comm comm = MPI_COMM_WORLD;
|
||||
int comm_size = 1;
|
||||
MPI_Comm_size (comm, &comm_size);
|
||||
int comm_rank = 0;
|
||||
|
||||
@@ -57,5 +57,6 @@ main (
|
||||
// cleanup
|
||||
free (data);
|
||||
H5CloseFile (file);
|
||||
return MPI_Finalize ();
|
||||
MPI_Finalize ();
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -69,5 +69,6 @@ main (
|
||||
// cleanup
|
||||
free (data);
|
||||
H5CloseFile (file);
|
||||
return MPI_Finalize ();
|
||||
MPI_Finalize ();
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -59,5 +59,6 @@ main (
|
||||
// cleanup
|
||||
free (data);
|
||||
H5CloseFile (file);
|
||||
return MPI_Finalize ();
|
||||
MPI_Finalize ();
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -60,6 +60,7 @@ main (
|
||||
|
||||
// cleanup
|
||||
H5CloseFile (file);
|
||||
return MPI_Finalize ();
|
||||
MPI_Finalize ();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -52,5 +52,6 @@ main (
|
||||
|
||||
// done
|
||||
H5CloseFile(file);
|
||||
return MPI_Finalize ();
|
||||
MPI_Finalize ();
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -69,5 +69,6 @@ main (
|
||||
|
||||
// done
|
||||
H5CloseFile(file);
|
||||
return MPI_Finalize();
|
||||
MPI_Finalize();
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -69,5 +69,6 @@ main (
|
||||
|
||||
// cleanup
|
||||
H5CloseFile (file);
|
||||
return MPI_Finalize ();
|
||||
MPI_Finalize ();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user