Skip to content

Commit 649d71a

Browse files
Ib restart hotfix (#1373)
1 parent f3cfba8 commit 649d71a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/simulation/m_collisions.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ contains
148148
$:GPU_ATOMIC(atomic='update')
149149
forces(pid2, l) = forces(pid2, l) - (normal_force(l) + tangental_force(l))
150150
$:GPU_ATOMIC(atomic='update')
151-
torques(pid2, l) = torques(pid2, l) - torque(l)*patch_ib(pid2)%radius/patch_ib(pid1)%radius
151+
torques(pid2, l) = torques(pid2, l) + torque(l)*patch_ib(pid2)%radius/patch_ib(pid1)%radius
152152
end do
153153
end if
154154
end if

src/simulation/m_data_output.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ contains
170170
call s_create_directory(trim(case_dir) // '/restart_data')
171171
write (file_loc, '(A)') 'ib_state.dat'
172172
file_loc = trim(case_dir) // '/restart_data/' // trim(file_loc)
173-
if (t_step_start /= 0) then
173+
if (t_step_start > 0) then
174174
! On restart, append to existing file to preserve history
175175
open (newunit=ib_state_unit, file=trim(file_loc), form='unformatted', access='stream', status='old', &
176176
& position='append', iostat=ios)

0 commit comments

Comments
 (0)