Commit 1bbe86e
committed
fix: grow patch_ib on non-rank-0 before MPI broadcast of IB patches
When particle beds are used, rank 0 grows patch_ib to num_ib_patches_max
inside s_generate_particle_beds. Non-rank-0 ranks only have the
namelist-sized allocation (num_ib_patches_max_namelist). The num_ibs
scalar is broadcast first, so we can check and grow before the per-patch
MPI_BCAST loop accesses patch_ib(i) for i > num_ib_patches_max_namelist.1 parent 06b802e commit 1bbe86e
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
195 | 208 | | |
196 | 209 | | |
197 | 210 | | |
| |||
0 commit comments