Skip to content

Commit

Permalink
allow -1000 m
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Sep 18, 2024
1 parent 2c820d9 commit c6c67f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/KPS4.jl
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,10 @@ Output:
p2 = s.springs[i].p2 # Second point nr.
height = 0.5 * (pos[p1][3] + pos[p2][3])
rho = calc_rho(s.am, height)
@assert height > 0
if height <= -1000.0
println("Error: height: $height")
end
@assert height > -1000
if height < 6
height = 6
end
Expand Down

0 comments on commit c6c67f9

Please sign in to comment.