Skip to content

Commit 5f62409

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 09e6c12 commit 5f62409

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plasticparcels/kernels.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,11 +641,11 @@ def unbeachingBySamplingAfterwards(particle, fieldset, time):
641641
right = math.sqrt(U_right**2 + V_right**2)
642642
up = math.sqrt(U_up**2 + V_up**2)
643643
down = math.sqrt(U_down**2 + V_down**2)
644-
644+
645645
max_vel = 0.
646646
U_dir = 0.
647647
V_dir = 0.
648-
648+
649649
if left + right + up + down > 1e-14:
650650
max_vel = left
651651
U_dir = -1.
@@ -752,7 +752,7 @@ def reflectAtBathymetry(particle, fieldset, time):
752752

753753
if potential_depth > 100:
754754
local_bathymetry = 0.99*local_bathymetry # Handle linear interpolation issues for deep particles
755-
755+
756756
if potential_depth > local_bathymetry:
757757
beyond_depth = potential_depth - local_bathymetry
758758
particle.depth = local_bathymetry - beyond_depth # Reflect the particle back above the bathymetry

0 commit comments

Comments
 (0)