Skip to content

Commit

Permalink
hi is inclusive. Thus, hi = lo + size -1
Browse files Browse the repository at this point in the history
  • Loading branch information
ylee88 committed May 3, 2024
1 parent 49669b3 commit 2f7dcfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/milhoja_pypkg/src/milhoja/CppTemplateUtility.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ def iterate_tile_scratch(
lo = f"IntVect{{ LIST_NDIM({', '.join(lbound[:-1])}) }}" \
if len(exts) == len(lbound) else lbound[0]
hi = f'({lo}) +' \
f'( IntVect{{ LIST_NDIM({",".join(extents4d[:-1])}) }} )'
f'( IntVect{{ LIST_NDIM({",".join(extents4d[:-1])}) }} )' + \
'- ( IntVect{LIST_NDIM(1,1,1)} )'
unks = extents4d[-1]
self.insert_farray_memcpy(
connectors, item, lo, hi, str(unks), info.dtype
Expand Down

0 comments on commit 2f7dcfb

Please sign in to comment.