Skip to content

Commit 957fcd2

Browse files
Minor review comments addressed
1 parent dc8aabf commit 957fcd2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/simulation/m_collisions.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ contains
3838
spring_stiffness = (pi**2 + log(e)**2)/(collision_time**2)
3939
$:GPU_UPDATE(device='[damping_parameter, spring_stiffness]')
4040

41-
@:ALLOCATE(collision_lookup(num_ibs * (num_ibs-1) / 2, 4))
41+
@:ALLOCATE(collision_lookup(num_ibs * 8, 4))
4242
@:ALLOCATE(wall_overlap_distances(num_ibs, 6))
4343

4444
wall_overlap_distances = 0
@@ -419,7 +419,7 @@ contains
419419
if (collision_location(${ID}$) < ${X}$_domain%beg) then
420420
projected_location(${ID}$) = ${X}$_domain%beg
421421
else if (${X}$_domain%end < collision_location(${ID}$)) then
422-
projected_location(${ID}$) = ${X}$_domain%end - 1.0e-10
422+
projected_location(${ID}$) = ${X}$_domain%end - 1.0e-10_wp
423423
end if
424424
end if
425425
end if

0 commit comments

Comments
 (0)