aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschnetter <schnetter@b61c5cb5-eaca-4651-9a7a-d64986f99364>2005-01-29 17:49:20 +0000
committerschnetter <schnetter@b61c5cb5-eaca-4651-9a7a-d64986f99364>2005-01-29 17:49:20 +0000
commiteae61d94fce7f085e3a231d43af75dc81bee5791 (patch)
tree8855da57a67e61c693937c00eccbdf40241ddadf /src
parent229a8d009cc9b111ab219cc10d9dcfe4c5ccc035 (diff)
Provide MPI datatypes for both CCTK_BYTE and CCTK_CHAR
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@456 b61c5cb5-eaca-4651-9a7a-d64986f99364
Diffstat (limited to 'src')
-rw-r--r--src/include/pugh.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/include/pugh.h b/src/include/pugh.h
index 10a2b69..222b2f6 100644
--- a/src/include/pugh.h
+++ b/src/include/pugh.h
@@ -24,8 +24,8 @@
Define the different datatypes used for MPI communication
NOTE: the complex datatype is defined dynamically at runtime in SetupPGH.c
***/
-/* char type is easy */
-#define PUGH_MPI_CHAR MPI_CHAR
+/* byte type is easy */
+#define PUGH_MPI_BYTE MPI_UNSIGNED_CHAR
/* floating point types are architecture-independent,
ie. a float has always 4 bytes, and a double has 8 bytes
@@ -53,6 +53,10 @@
#endif
+/* char type is easy */
+#define PUGH_MPI_CHAR MPI_CHAR
+
+
/* integer types are architecture-dependent:
PUGH_MPI_INT is used for communicating integers of the generic CCTK_INT type
PUGH_MPI_INTn is used to explicitely communicate n-byte integers */