[Commits] [svn:einsteintoolkit] TmunuBase/trunk/src/ (Rev. 24)

schnetter at cct.lsu.edu schnetter at cct.lsu.edu
Thu Jun 13 13:57:30 CDT 2013


User: eschnett
Date: 2013/06/13 01:57 PM

Modified:
 /trunk/src/
  TmunuBase_CalcTmunu.inc

Log:
 Correct array bounds checking for padded grid functions

File Changes:

Directory: /trunk/src/
======================

File [modified]: TmunuBase_CalcTmunu.inc
Delta lines: +1 -1
===================================================================
--- trunk/src/TmunuBase_CalcTmunu.inc	2013-05-27 22:32:17 UTC (rev 23)
+++ trunk/src/TmunuBase_CalcTmunu.inc	2013-06-13 18:57:30 UTC (rev 24)
@@ -13,7 +13,7 @@
   {
 
 #ifndef NDEBUG
-    if ((ijk) < 0 || (ijk) >= cctk_lsh[0] * cctk_lsh[1] * cctk_lsh[2])
+    if ((ijk) < 0 || (ijk) >= cctk_ash[0] * cctk_ash[1] * cctk_ash[2])
     {
       CCTK_WARN (0, "Illegal array index");
     }



More information about the Commits mailing list