forked from NOAA-GFDL/icebergs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed error where particles on the edge of recently-calved iceberg co…
…nglomerates were moving unphysically: this was related to bouncing occuring when these bergs overlapped masked ice-shelf cells. Fixed by removing bouncing when using tabular_calving and by unmasking any cell that contains a berg particle. The latter unmasking fix is a bit of a hack, but is required for grid_to_berg interpolations and tidal_drift/coastal_drift to work as intended (note that at calving, it is possible for a cell to be partially-full with both icebergs and ice shelf). Overall, this hack works OK as long as tidal_drift or coastal_drift are set such that berg particles will not advect into cells that are full of ice shelf or land. An alterative solution would involve pushing bergs away from the ice front (partially-full or not) using some type of contact force instead of tidal_drift or coastal_drift, and preferably, skipping the unmasking step. To this end, and helpful for debugging, a mask_status variable was also added to the berg and berg trajectory types. While unused at this time, this mask_status could be used in the future, e.g. to track whether a berg can coexist with ice shelf in a masked cell because it is recently calved
- Loading branch information
Showing
4 changed files
with
181 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.