There was an error while loading. Please reload this page.
1 parent dc8aabf commit 957fcd2Copy full SHA for 957fcd2
1 file changed
src/simulation/m_collisions.fpp
@@ -38,7 +38,7 @@ contains
38
spring_stiffness = (pi**2 + log(e)**2)/(collision_time**2)
39
$:GPU_UPDATE(device='[damping_parameter, spring_stiffness]')
40
41
- @:ALLOCATE(collision_lookup(num_ibs * (num_ibs-1) / 2, 4))
+ @:ALLOCATE(collision_lookup(num_ibs * 8, 4))
42
@:ALLOCATE(wall_overlap_distances(num_ibs, 6))
43
44
wall_overlap_distances = 0
@@ -419,7 +419,7 @@ contains
419
if (collision_location(${ID}$) < ${X}$_domain%beg) then
420
projected_location(${ID}$) = ${X}$_domain%beg
421
else if (${X}$_domain%end < collision_location(${ID}$)) then
422
- projected_location(${ID}$) = ${X}$_domain%end - 1.0e-10
+ projected_location(${ID}$) = ${X}$_domain%end - 1.0e-10_wp
423
end if
424
425
0 commit comments