- several simple fixes
This commit is contained in:
2015-10-08 16:58:05 +02:00
parent 4e42972ebb
commit 149c144eee
13 changed files with 17 additions and 41 deletions
-8
View File
@@ -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,
-8
View File
@@ -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,
-8
View File
@@ -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";
-9
View File
@@ -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 {
+2 -1
View File
@@ -50,5 +50,6 @@ main (
// cleanup
free (data);
H5CloseFile (file);
return MPI_Finalize ();
MPI_Finalize ();
return 0;
}
+1
View File
@@ -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;
+2 -1
View File
@@ -57,5 +57,6 @@ main (
// cleanup
free (data);
H5CloseFile (file);
return MPI_Finalize ();
MPI_Finalize ();
return 0;
}
+2 -1
View File
@@ -69,5 +69,6 @@ main (
// cleanup
free (data);
H5CloseFile (file);
return MPI_Finalize ();
MPI_Finalize ();
return 0;
}
+2 -1
View File
@@ -59,5 +59,6 @@ main (
// cleanup
free (data);
H5CloseFile (file);
return MPI_Finalize ();
MPI_Finalize ();
return 0;
}
+2 -1
View File
@@ -60,6 +60,7 @@ main (
// cleanup
H5CloseFile (file);
return MPI_Finalize ();
MPI_Finalize ();
return 0;
}
+2 -1
View File
@@ -52,5 +52,6 @@ main (
// done
H5CloseFile(file);
return MPI_Finalize ();
MPI_Finalize ();
return 0;
}
+2 -1
View File
@@ -69,5 +69,6 @@ main (
// done
H5CloseFile(file);
return MPI_Finalize();
MPI_Finalize();
return 0;
}
+2 -1
View File
@@ -69,5 +69,6 @@ main (
// cleanup
H5CloseFile (file);
return MPI_Finalize ();
MPI_Finalize ();
return 0;
}