Skip to content

Commit 4229ff4

Browse files
authored
Merge pull request #61 from GEOS-ESM/develop
sync main and develop
2 parents 30768fb + 66c664b commit 4229ff4

9 files changed

Lines changed: 42 additions & 7 deletions

File tree

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
version: 2.1
22

33
# Anchors to prevent forgetting to update a version
4-
#baselibs_version: &baselibs_version v7.14.0
4+
#baselibs_version: &baselibs_version v7.17.0
55
#bcs_version: &bcs_version v11.3.0
66

77
orbs:
8-
ci: geos-esm/circleci-tools@1
8+
ci: geos-esm/circleci-tools@2
99

1010
workflows:
1111
build-test:

GEOSdatasea_GridComp/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ esma_add_library (${this} SRCS GEOS_DataSeaGridComp.F90 DEPENDENCIES MAPL esmf N
55
mapl_acg (${this} GEOS_DataSea_StateSpecs.rc
66
IMPORT_SPECS EXPORT_SPECS INTERNAL_SPECS
77
GET_POINTERS DECLARE_POINTERS)
8+
9+
install (
10+
FILES DataSea_ExtData.yaml
11+
DESTINATION etc
12+
)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Exports:
2+
DATA_UW:
3+
collection: /dev/null
4+
DATA_VW:
5+
collection: /dev/null

GEOSdatasea_GridComp/GEOS_DataSeaGridComp.F90

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ subroutine RUN ( GC, IMPORT, EXPORT, CLOCK, RC )
168168
real, pointer, dimension(:,:) :: TNEW => null()
169169
real, pointer, dimension(:,:) :: F1 => null()
170170

171+
real, parameter :: MAX_SPEED = 10.0 ! maximum surface current speed, m s-1
172+
171173
! Pointers to imports and exports
172174
#include "GEOS_DataSea_DeclarePointer___.h"
173175

@@ -255,8 +257,21 @@ subroutine RUN ( GC, IMPORT, EXPORT, CLOCK, RC )
255257
! Update the exports
256258
!--------------------
257259

258-
if(associated(UW)) UW = 0.0
259-
if(associated(VW)) VW = 0.0
260+
if (associated(UW)) then
261+
where (abs(DATA_UW) < MAX_SPEED)
262+
UW = DATA_UW
263+
elsewhere
264+
UW = 0.0
265+
end where
266+
end if
267+
268+
if (associated(VW)) then
269+
where (abs(DATA_VW) < MAX_SPEED)
270+
VW = DATA_VW
271+
elsewhere
272+
VW = 0.0
273+
end where
274+
end if
260275

261276
TICE = MAPL_TICE-1.8
262277

GEOSdatasea_GridComp/GEOS_DataSea_StateSpecs.rc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ category: IMPORT
1010
FRACICE | 1 | xy | N | | fractional_cover_of_seaice
1111
DATA_SST | K | xy | N | ocean_extData | sea_surface_temperature
1212
DATA_SSS | PSU | xy | N | ocean_sssData | sea_surface_salinity
13+
DATA_UW | m s-1 | xy | N | | zonal_velocity_of_surface_water
14+
DATA_VW | m s-1 | xy | N | | meridional_velocity_of_surface_water
1315

1416
category: EXPORT
1517
#----------------------------------------------------------------------------------------

MOM6_GEOSPlug/mom6_app/1440x1080/input.nml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
&MOM_input_nml
22
output_directory = './',
3-
input_filename = 'n'
3+
input_filename = 'r'
44
restart_input_dir = 'INPUT/',
55
restart_output_dir = 'RESTART/',
66
parameter_filename = 'MOM_input',

MOM6_GEOSPlug/mom6_app/540x458/MOM_override

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,11 @@ TOPO_FILE = "ocean_topog.nc"
6060
!
6161
#override USE_HORIZONTAL_BOUNDARY_DIFFUSION = True
6262
#override LBD_LINEAR_TRANSITION = True
63+
!
64+
! Extra slack for bad values
65+
!
66+
#override BAD_VAL_SSH_MAX = 50.0
67+
#override BAD_VAL_SSS_MAX = 75.0
68+
#override BAD_VAL_SST_MAX = 55.0
69+
#override BAD_VAL_SST_MIN = -3.0
70+

MOM6_GEOSPlug/mom6_app/540x458/input.nml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
&MOM_input_nml
22
output_directory = './',
3-
input_filename = 'n'
3+
input_filename = 'r'
44
restart_input_dir = 'INPUT/',
55
restart_output_dir = 'RESTART/',
66
parameter_filename = 'MOM_input',

MOM6_GEOSPlug/mom6_app/72x36/input.nml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
&MOM_input_nml
22
output_directory = './',
3-
input_filename = 'n'
3+
input_filename = 'r'
44
restart_input_dir = 'INPUT/',
55
restart_output_dir = 'RESTART/',
66
parameter_filename = 'MOM_input',

0 commit comments

Comments
 (0)