aboutsummaryrefslogtreecommitdiff
path: root/Examples/AdvectCaKernel/src/Differencing.h
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/AdvectCaKernel/src/Differencing.h')
-rw-r--r--Examples/AdvectCaKernel/src/Differencing.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Examples/AdvectCaKernel/src/Differencing.h b/Examples/AdvectCaKernel/src/Differencing.h
index 2dc688d..deea999 100644
--- a/Examples/AdvectCaKernel/src/Differencing.h
+++ b/Examples/AdvectCaKernel/src/Differencing.h
@@ -1,12 +1,12 @@
#ifndef KRANC_DIFF_FUNCTIONS
-# define PDstandard1(u) ((-KRANC_GFOFFSET3D(u,0,0,0) + KRANC_GFOFFSET3D(u,1,0,0))*p1odx)
+# define PDstandard1(u) ((-1.*KRANC_GFOFFSET3D(u,0,0,0) + KRANC_GFOFFSET3D(u,1,0,0))*p1odx)
#else
# define PDstandard1(u) (PDstandard1_impl(u,p1odx,cdj,cdk))
static CCTK_REAL PDstandard1_impl(CCTK_REAL const* restrict const u, CCTK_REAL const p1odx, ptrdiff_t const cdj, ptrdiff_t const cdk) CCTK_ATTRIBUTE_NOINLINE CCTK_ATTRIBUTE_UNUSED;
static CCTK_REAL PDstandard1_impl(CCTK_REAL const* restrict const u, CCTK_REAL const p1odx, ptrdiff_t const cdj, ptrdiff_t const cdk)
{
- ptrdiff_t const cdi=sizeof(CCTK_REAL);
- return (-KRANC_GFOFFSET3D(u,0,0,0) + KRANC_GFOFFSET3D(u,1,0,0))*p1odx;
+ ptrdiff_t const cdi CCTK_ATTRIBUTE_UNUSED = sizeof(CCTK_REAL);
+ return (-1.*KRANC_GFOFFSET3D(u,0,0,0) + KRANC_GFOFFSET3D(u,1,0,0))*p1odx;
}
#endif