Skip to content

Commit

Permalink
Fix bug in calculation of last index for subdomain expressions.
Browse files Browse the repository at this point in the history
  • Loading branch information
chuck.yount committed Mar 29, 2019
1 parent 87e26cb commit 24ea446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kernel/lib/yask_stencil.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ IN THE SOFTWARE.
// First/last index macros.
// These are relative to global problem, not rank.
#define FIRST_INDEX(dim) (0)
#define LAST_INDEX(dim) (_context->get_settings().get()->_global_sizes[DOMAIN_DIM_IDX_ ## dim] - 1)
#define LAST_INDEX(dim) (_context->get_settings().get()->_global_sizes[STENCIL_DIM_IDX_ ## dim] - 1)

// Macros for 1D<->nD transforms.
#include "yask_layout_macros.hpp"
Expand Down

0 comments on commit 24ea446

Please sign in to comment.