File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ namespace libmpdataxx
108108
109109 assert (halo>=1 );
110110 const rng_t left_edge_sclr_rng (this ->left_edge_sclr , this ->left_edge_sclr );
111- this ->xchng (a, idx_t (idx_ctor_arg_t (left_edge_sclr_rng)), idx_t (idx_ctor_arg_t (this ->left_halo_sclr .last ())));
111+ const rng_t left_halo_sclr_last_rng (this ->left_halo_sclr .last (), this ->left_halo_sclr .last ());
112+ this ->xchng (a, idx_t (idx_ctor_arg_t (left_edge_sclr_rng)), idx_t (idx_ctor_arg_t (left_halo_sclr_last_rng)));
112113 }
113114
114115 void avg_edge_and_halo1_sclr_cyclic (arr_t &a, const rng_t &j)
@@ -218,7 +219,8 @@ namespace libmpdataxx
218219
219220 assert (halo>=1 );
220221 const rng_t rght_edge_sclr_rng (this ->rght_edge_sclr , this ->rght_edge_sclr );
221- this ->xchng (a, idx_t (idx_ctor_arg_t (rght_edge_sclr_rng)), idx_t (idx_ctor_arg_t (this ->rght_halo_sclr .first ())));
222+ const rng_t rght_halo_sclr_first_rng (this ->rght_halo_sclr .first (), this ->rght_halo_sclr .first ());
223+ this ->xchng (a, idx_t (idx_ctor_arg_t (rght_edge_sclr_rng)), idx_t (idx_ctor_arg_t (rght_halo_sclr_first_rng)));
222224 }
223225
224226 void avg_edge_and_halo1_sclr_cyclic (arr_t &a, const rng_t &j)
You can’t perform that action at this time.
0 commit comments