Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have added a number scheme so that each iceberg gets a unique number. The number is based on a counter which counts how many icebergs have been created in a particular grid cell.
The iceberg number is called iceberg_num, and is written to the iceberg_trajectory file, to be used in post processing. It is also written and read from the iceberg.res restart file.
The iceberg grd counter is called iceberg_counter_grd. It is written and read from the calving.res restart file (since it is gridded).
The previous method used for identifying icebergs (ie: start_year, start_mass, start_lon, start_lat, start_day) has been left in place, and is still being used in several places to sort icebergs. This can be removed and replaced by the counter system at a later time.