From cbb5ceaeb8b507b6b9469bd8609c954411c94cd6 Mon Sep 17 00:00:00 2001 From: eschnett Date: Sat, 19 Jan 2013 18:09:23 +0000 Subject: Make it obvious that all variables are used initialised git-svn-id: http://svn.cactuscode.org/flesh/trunk@4944 17b73243-c579-4c4c-a9d2-2d5706c11dac --- src/include/cctk_Loop.h | 100 +++++++++++++++++++++++++-------------------- src/include/cctk_Loop.h.pl | 19 +++++---- 2 files changed, 66 insertions(+), 53 deletions(-) (limited to 'src') diff --git a/src/include/cctk_Loop.h b/src/include/cctk_Loop.h index 05e846f9..fb1bb92a 100644 --- a/src/include/cctk_Loop.h +++ b/src/include/cctk_Loop.h @@ -57,8 +57,11 @@ int const cctki0_istr = (istr); \ int const imin CCTK_ATTRIBUTE_UNUSED = cctki0_imin; \ int const imax CCTK_ATTRIBUTE_UNUSED = cctki0_imax; \ + \ + \ + int const cctki0_ioff = (cctki0_imin) % cctki0_istr; \ _Pragma("omp for") \ - for (int i=cctki0_imin - (cctki0_imin) % cctki0_istr; i