From eae61d94fce7f085e3a231d43af75dc81bee5791 Mon Sep 17 00:00:00 2001 From: schnetter Date: Sat, 29 Jan 2005 17:49:20 +0000 Subject: 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 --- src/include/pugh.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') 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 */ -- cgit v1.2.3