Skip to content

Commit c713091

Browse files
committed
v2: Magnitude of the surface stress passing into the MOM6
1 parent 7c74e3f commit c713091

File tree

3 files changed

+41
-8
lines changed

3 files changed

+41
-8
lines changed

.github/workflows/enforce-labels.yml

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [opened, labeled, unlabeled, edited, synchronize]
66

77
jobs:
8-
require-label:
8+
require-coupled-label:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: mheap/github-action-required-labels@v5
@@ -14,9 +14,35 @@ jobs:
1414
with:
1515
mode: minimum
1616
count: 1
17-
labels: "0 diff,0 diff trivial,Non 0-diff,0 diff structural,0-diff trivial,Not 0-diff,0-diff,automatic,0-diff uncoupled,github_actions"
17+
labels: "0 diff coupled,non 0-diff coupled"
1818
add_comment: true
19-
message: "This PR is being prevented from merging because you have not added one of our required labels: {{ provided }}. Please add one so that the PR can be merged."
19+
message: "This PR is being prevented from merging because you have not added one of our required labels to say if they are 0-diff or non-0-diff for coupled runs: {{ provided }}. Please add so that the PR can be merged."
20+
21+
require-dataatm-label:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: mheap/github-action-required-labels@v5
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
with:
28+
mode: minimum
29+
count: 1
30+
labels: "0 diff dataatm,non 0-diff dataatm"
31+
add_comment: true
32+
message: "This PR is being prevented from merging because you have not added one of our required labels to say if they are 0-diff or non-0-diff for dataatm runs: {{ provided }}. Please add so that the PR can be merged."
33+
34+
require-dataocean-label:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: mheap/github-action-required-labels@v5
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
with:
41+
mode: minimum
42+
count: 1
43+
labels: "0 diff dataocean,non 0-diff dataocean"
44+
add_comment: true
45+
message: "This PR is being prevented from merging because you have not added one of our required labels to say if they are 0-diff or non-0-diff for dataocean runs: {{ provided }}. Please add so that the PR can be merged."
2046

2147
blocking-label:
2248
runs-on: ubuntu-latest

MOM6_GEOSPlug/MOM6_GEOSPlug.F90

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,13 @@ subroutine Run ( GC, IMPORT, EXPORT, CLOCK, RC )
773773
Boundary%U_flux (isc:iec,jsc:jec)= real( (U*cos_rot - V*sin_rot), kind=KIND(Boundary%p))
774774
Boundary%V_flux (isc:iec,jsc:jec)= real( (U*sin_rot + V*cos_rot), kind=KIND(Boundary%p))
775775

776+
!Calculate the magnitude of the stress on the ocean [Pa]
777+
!-------------------------------------------------------
778+
U = 0.0; V = 0.0
779+
U = real ( TAUX*(1.-AICE) - TAUXBOT*AICE )**2
780+
V = real ( TAUY*(1.-AICE) - TAUYBOT*AICE )**2
781+
Boundary%stress_mag (isc:iec,jsc:jec)= real( (U+V)**0.5, kind=KIND(Boundary%p) )
782+
776783
! Set the time for MOM
777784
!---------------------
778785

@@ -891,11 +898,9 @@ subroutine Run ( GC, IMPORT, EXPORT, CLOCK, RC )
891898
elsewhere
892899
FRZMLT = 0.0
893900
end where
894-
895-
where(MOM_2D_MASK(:,:)>0.0 .and. FRAZIL(:,:) > 0.0)
901+
where(MOM_2D_MASK(:,:)>0.0 .and. FRAZIL>0.0)
896902
FRZMLT = FRAZIL
897-
endwhere
898-
903+
end where
899904
end if
900905

901906
! freezing temperature (deg C)
@@ -927,6 +932,8 @@ subroutine Run ( GC, IMPORT, EXPORT, CLOCK, RC )
927932
ASSERT_(.false.)
928933
endif
929934

935+
936+
930937
! B-grid currents (for CICE dynamics)
931938
U = 0.0; V = 0.0
932939
call ocean_model_get_UV_surf(Ocean_State, Ocean, 'ub', U, isc, jsc) ! this comes to us in m/s

MOM6_GEOSPlug/mom6_app/1440x1080/MOM_override

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ RESTART_CHECKSUMS_REQUIRED = False
5151
#override PRESSURE_DEPENDENT_FRAZIL = False
5252
!
5353
! update answers
54-
!
54+

0 commit comments

Comments
 (0)