Skip to content

Commit

Permalink
Commit code to pull into Lorenz for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldenes committed Apr 29, 2024
1 parent aa046d7 commit 0a82142
Show file tree
Hide file tree
Showing 3 changed files with 1,182 additions and 2,746 deletions.
2 changes: 1 addition & 1 deletion PlasticParcels/constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def create_kernel(fieldset, pset):
def load_default_settings():
settings = {
# Model settings
'mode': '2D', # Options [3D, 2D]
'mode': '3D', # Options [3D, 2D]
'allow_time_extrapolation': False, # Allow extrapolation of time for fieldset
'verbose_delete': False, # Print extra information when executing delete operations

Expand Down
5 changes: 3 additions & 2 deletions PlasticParcels/kernels.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,8 +801,9 @@ def checkErrorThroughSurface(particle, fieldset, time):
""" Kernel to set the particle depth to the particle surface if it goes through the surface
"""
if particle.state == StatusCode.ErrorThroughSurface:
particle_ddepth = - particle.depth # Set so that final depth = 0
particle.state = StatusCode.Success
#particle_ddepth = - particle.depth # Set so that final depth = 0
#particle.state = StatusCode.Success
particle.delete()


def deleteParticle(particle, fieldset, time):
Expand Down
3,921 changes: 1,178 additions & 2,743 deletions PlasticParcels_cleanup.ipynb

Large diffs are not rendered by default.

0 comments on commit 0a82142

Please sign in to comment.