Skip to content

Commit 77d6c8a

Browse files
committed
clean up some formatting issues
1 parent d115cc0 commit 77d6c8a

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

compass/landice/tests/slm/circ_icesheet/__init__.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ class CircIcesheetTest(TestCase):
99
This test generates an idealized, circular ice sheet that has a
1010
prescribed thickness evolution for testing coupling between MALI
1111
and the Sea-Level Model.
12-
13-
Attributes
14-
----------
1512
"""
1613

1714
def __init__(self, test_group):
@@ -20,12 +17,9 @@ def __init__(self, test_group):
2017
2118
Parameters
2219
----------
23-
test_group : compass.landice.tests.dome.Dome
20+
test_group : compass.landice.tests.slm.Slm
2421
The test group that this test case belongs to
2522
The resolution or type of mesh of the test case
26-
27-
name : str, optional
28-
the name of the test case
2923
"""
3024
name = 'circular_icesheet_test'
3125
subdir = name
@@ -51,7 +45,7 @@ def configure(self):
5145
for nglv in slm_nglv:
5246
self.add_step(SetupMesh(test_case=self,
5347
name=f'mali{res}km_slm{nglv}/'
54-
f'setup_mesh', res=res, nglv=nglv))
48+
'setup_mesh', res=res, nglv=nglv))
5549
if (int(res) <= 16 and int(res) > 2):
5650
ntasks = 256
5751
elif (int(res) <= 2):

compass/landice/tests/slm/circ_icesheet/circ_icesheet.cfg

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ r0 = 2000000.0
1616
h0 = 3000.0
1717

1818
# 'True' if manually want to set bedTopography elevation
19-
# bed topography elevation in meters (provide a positive/negative float value
20-
# for grounded above land/marine-based ice)
19+
# if 'False' topography will be set to 0 everywhere (flat bed at sea level)
2120
set_topo_elev = True
21+
# flat bed topography elevation in meters
22+
# (positive value => land, negative => ocean)
2223
topo_elev = -1500.0
2324

2425
# Whether to center the circular ice in the center of the cell that is closest to the
@@ -47,7 +48,7 @@ dhdt = -20.0
4748
coupling = True
4849

4950
# List of the number of Gauss-Legendre points in latitude
50-
# delimited by ',' without space
51+
# list delimited by ',' without space
5152
slm_nglv = 512
5253

5354
# Max spherical harmonics degree and order

compass/landice/tests/slm/circ_icesheet/run_model.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@
1010
class RunModel(Step):
1111
"""
1212
A step for performing forward MALI runs as part of dome test cases.
13-
14-
Attributes
15-
----------
1613
"""
14+
1715
def __init__(self, test_case, res, nglv, ntasks, name='run_model',
1816
subdir=None, min_tasks=None, openmp_threads=1):
1917
"""
@@ -93,7 +91,7 @@ def setup(self):
9391
'namelist.sealevel.template'))
9492
text = template.render(nglv=self.nglv)
9593

96-
# write out the namelise.sealevel file
94+
# write out the namelist.sealevel file
9795
file_slm_nl = os.path.join(self.work_dir, 'namelist.sealevel')
9896
with open(file_slm_nl, 'w') as handle:
9997
handle.write(text)

0 commit comments

Comments
 (0)