Skip to content

Commit 3234828

Browse files
committed
Key the force record on the global patch id and let a zero stride be rejected
1 parent ee06b6b commit 3234828

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/simulation/m_data_output.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ contains
11321132
if (num_procs > 1) ib_idx = local_ib_patch_ids(i)
11331133
if (ib_force_buf_n == ib_force_buf_len) call s_flush_ib_force_files()
11341134
ib_force_buf_n = ib_force_buf_n + 1
1135-
ib_force_buf(1, ib_force_buf_n) = real(max(patch_ib(ib_idx)%gbl_patch_id, ib_idx), wp)
1135+
ib_force_buf(1, ib_force_buf_n) = real(patch_ib(ib_idx)%gbl_patch_id, wp)
11361136
ib_force_buf(2, ib_force_buf_n) = real(t_step, wp)
11371137
ib_force_buf(3, ib_force_buf_n) = mytime
11381138
ib_force_buf(4:6,ib_force_buf_n) = patch_ib(ib_idx)%force(1:3)

toolchain/mfc/case_validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ def check_ibm(self):
759759
)
760760
self.prohibit(not ib and num_ibs > 0, "num_ibs is set, but ib is not enabled")
761761
self.prohibit(ib_state_wrt and not ib, "ib_state_wrt requires ib to be enabled")
762-
ib_force_stride = self.get("ib_force_stride", 1) or 1
762+
ib_force_stride = self.get("ib_force_stride", 1)
763763
self.prohibit(ib_force_stride < 1, "ib_force_stride must be >= 1")
764764
self.prohibit(many_ib_patch_parallelism and not ib, "many_ib_patch_parallelism requires ib to be enabled")
765765

0 commit comments

Comments
 (0)