Skip to content

Commit b57ad43

Browse files
committed
Update geojson and mesh parameters
Use a custom geojson that extends the gutter where we expect many runs to predict margin advance. Also update mesh parameters for a high resolution mesh that uses only bed topograhpy to set cell spacing, and fix bug that was setting cell spacing to the maximum value outside of the ice mask.
1 parent 01c7677 commit b57ad43

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

compass/landice/mesh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def set_cell_width(self, section_name, thk, bed=None, vx=None, vy=None,
372372
# that distance.
373373
if dist_to_edge is not None:
374374
mask = np.logical_and(
375-
thk == 0.0, dist_to_edge > (3. * cull_distance))
375+
thk == 0.0, dist_to_edge > (35. * np.abs(cull_distance)))
376376
logger.info('Setting cell_width in outer regions to max_spac '
377377
f'for {mask.sum()} cells')
378378
cell_width[mask] = max_spac

compass/landice/tests/humboldt/Humboldt.geojson

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

compass/landice/tests/humboldt/mesh_gen/mesh_gen.cfg

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ y_max = -860000.
1313
# distance from ice margin to cull (km).
1414
# Set to a value <= 0 if you do not want
1515
# to cull based on distance from margin.
16-
cull_distance = 5.0
16+
cull_distance = -1.0
1717

1818
# mesh density parameters
1919
# minimum cell spacing (meters)
2020
min_spac = 1.e3
2121
# maximum cell spacing (meters)
22-
max_spac = 1.e4
22+
max_spac = 2.5e3
2323
# log10 of max speed (m/yr) for cell spacing
2424
high_log_speed = 2.5
2525
# log10 of min speed (m/yr) for cell spacing
@@ -29,18 +29,18 @@ high_dist = 1.e5
2929
# distance within which cell spacing = min_spac (meters)
3030
low_dist = 1.e4
3131
# distance at which bed topography has no effect
32-
high_dist_bed = 1.e5
32+
high_dist_bed = 8.e4
3333
# distance within which bed topography has maximum effect
34-
low_dist_bed = 5.e4
34+
low_dist_bed = 7.e4
3535
# Bed elev beneath which cell spacing is minimized
3636
low_bed = 50.0
3737
# Bed elev above which cell spacing is maximized
3838
high_bed = 100.0
3939

4040
# mesh density functions
41-
use_speed = True
41+
use_speed = False
4242
use_dist_to_grounding_line = False
43-
use_dist_to_edge = True
43+
use_dist_to_edge = False
4444
use_bed = True
4545

4646
[greenland]

0 commit comments

Comments
 (0)