Skip to content

Commit db1cc50

Browse files
sbryngelsonclaude
andcommitted
Fix mv read loop hardcoding 4 instead of nnode
The pb loop just above correctly uses nnode for both the loop bound and file number offset. The mv loop should match. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ab5082e commit db1cc50

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pre_process/m_start_up.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,10 +476,10 @@ contains
476476
end do
477477
478478
do i = 1, nb
479-
do r = 1, 4
479+
do r = 1, nnode
480480
! Checking whether data file associated with variable position
481481
! of the currently manipulated bubble variable exists
482-
write (file_num, '(I0)') sys_size + r + (i - 1)*4
482+
write (file_num, '(I0)') sys_size + r + (i - 1)*nnode
483483
file_loc = trim(t_step_dir)//'/mv'// &
484484
trim(file_num)//'.dat'
485485
inquire (FILE=trim(file_loc), EXIST=file_check)

0 commit comments

Comments
 (0)