aboutsummaryrefslogtreecommitdiff
path: root/relax_mpi_test.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-06-18 14:49:40 +0200
committerAnton Khirnov <anton@khirnov.net>2019-06-29 11:19:29 +0200
commit9f865c12f3870a58799c1ff8b3f60d2b53b7c6fc (patch)
treed4575bc13dd4fc393c55acfc3b2477f6bcf24ed0 /relax_mpi_test.c
parentf98130f9cbc12b66769dee0752a6ed28c9adb1a6 (diff)
egs: make array allocation more readable
Diffstat (limited to 'relax_mpi_test.c')
-rw-r--r--relax_mpi_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/relax_mpi_test.c b/relax_mpi_test.c
index 65888f6..75e76ef 100644
--- a/relax_mpi_test.c
+++ b/relax_mpi_test.c
@@ -109,10 +109,10 @@ int main(int argc, char **argv)
dg->components[i].interior.size[0] = N;
dg->components[i].interior.size[1] = patch_size_y;
- dg->components[i].exterior.start[0] = -FD_STENCIL;
- dg->components[i].exterior.start[1] = i ? patch_start : -FD_STENCIL;
- dg->components[i].exterior.size[0] = N + 2 * FD_STENCIL;
- dg->components[i].exterior.size[1] = patch_size_y + ((i == 0) * FD_STENCIL) + ((i == nb_processes - 1) * FD_STENCIL);
+ dg->components[i].exterior.start[0] = -FD_STENCIL_MAX;
+ dg->components[i].exterior.start[1] = i ? patch_start : -FD_STENCIL_MAX;
+ dg->components[i].exterior.size[0] = N + 2 * FD_STENCIL_MAX;
+ dg->components[i].exterior.size[1] = patch_size_y + ((i == 0) * FD_STENCIL_MAX) + ((i == nb_processes - 1) * FD_STENCIL_MAX);
dg->components[i].bnd_is_outer[MG2D_BOUNDARY_0L] = 1;
dg->components[i].bnd_is_outer[MG2D_BOUNDARY_0U] = 1;