diff options
author | schnetter <schnetter@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2003-10-13 18:07:50 +0000 |
---|---|---|
committer | schnetter <schnetter@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2003-10-13 18:07:50 +0000 |
commit | 58afc0ae5817d7ace4746aba37358055514a5100 (patch) | |
tree | 697f3a3a89f9e8b617708f8a354c8c7506978386 /src | |
parent | a569dcc07f61b7463655021a3b2968a83d0b193f (diff) |
Introduce the new Cactus variable type CCTK_INT1.
Extend routines to handle the new type.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@290 ebee0441-1374-4afa-a3b5-247f3ba15b9a
Diffstat (limited to 'src')
-rw-r--r-- | src/DumpVar.c | 3 | ||||
-rw-r--r-- | src/ioFlexGH.h | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/DumpVar.c b/src/DumpVar.c index e2896b5..d2cf4ca 100644 --- a/src/DumpVar.c +++ b/src/DumpVar.c @@ -137,6 +137,9 @@ int IOFlexIO_DataType (int cctk_type) case CCTK_VARIABLE_CHAR: retval = FLEXIO_CHAR; break; case CCTK_VARIABLE_INT: retval = FLEXIO_INT; break; case CCTK_VARIABLE_REAL: retval = FLEXIO_REAL; break; +#ifdef CCTK_INT1 + case CCTK_VARIABLE_INT1: retval = FLEXIO_INT1; break; +#endif #ifdef CCTK_INT2 case CCTK_VARIABLE_INT2: retval = FLEXIO_INT2; break; #endif diff --git a/src/ioFlexGH.h b/src/ioFlexGH.h index 3c2f029..55637eb 100644 --- a/src/ioFlexGH.h +++ b/src/ioFlexGH.h @@ -20,6 +20,9 @@ /* define the IOFlexIO datatypes according to CCTK_??? datatypes */ #define FLEXIO_CHAR CHAR +#ifdef CCTK_INT1 +#define FLEXIO_INT1 INT8 +#endif #ifdef CCTK_INT2 #define FLEXIO_INT2 INT16 #endif @@ -47,6 +50,8 @@ #define FLEXIO_INT INT32 #elif CCTK_INTEGER_PRECISION_2 #define FLEXIO_INT INT16 +#elif CCTK_INTEGER_PRECISION_1 +#define FLEXIO_INT INT8 #endif #ifdef CCTK_REAL_PRECISION_4 |