Added capability to track melt-by-ice-sheet-basin. Fixed consistency under different PE layouts for positioning of new footloose bergs. #70
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.
Added capability to read in a gridded field of ice-sheet basin IDs (e.g. IMBIE-3 basins), which are then associated with bergs as they calve from the basins. The iceberg melt fields associated with each basin can be saved and outputted.
Must provide a file "./INPUT/ice_sheet_basins.nc" (which resembles "./INPUT/ocean_topog.nc" in structure), with the field "sub_basin" that labels ice-sheet cells with their basin ID (which span 1 through n for the n basins). Non-ice-sheet cells are labeled as 0. Each basin in the file must extend at least one ocean cell past the ice front.
Must add to icebergs_nml:
nbasins = 18 !number of basins (18 for Antarctica for IMBIE-3)
use_berg_origin_basins = .true.
The diag_table field names for the basin-ID field and the melt-rate field associated with each basin are, respectively:
"ice_sheet_basins"
"melt_by_ice_sheet_basin"
The basin ID field should also output as "ice_sheet_basins_static"
Also changed the random positioning of new footloose child bergs around their parents so that it is consistent under different PE layouts.