diff options
Diffstat (limited to 'src/Reduction.c')
-rw-r--r-- | src/Reduction.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Reduction.c b/src/Reduction.c index 30ddfd5..7ca59a0 100644 --- a/src/Reduction.c +++ b/src/Reduction.c @@ -569,6 +569,18 @@ static int copy_real_to_outtype (int num_elems, _outarray[i] = (CCTK_INT) inarray[i]; } } +#ifdef CCTK_INT1 + else if (outtype == CCTK_VARIABLE_INT1) + { + CCTK_INT1 *_outarray = (CCTK_INT1 *) outarray; + + + for (i = 0; i < num_elems; i++) + { + _outarray[i] = (CCTK_INT1) inarray[i]; + } + } +#endif #ifdef CCTK_INT2 else if (outtype == CCTK_VARIABLE_INT2) { |