Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev/gfdl main candidate 2021-03-26 #1358

Merged
merged 107 commits into from
Apr 2, 2021
Merged
Show file tree
Hide file tree
Changes from 106 commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
2b7abec
Merge pull request #2 from NOAA-EMC/dev/emc
DeniseWorthen Nov 26, 2019
74f8d11
Merge pull request #4 from NOAA-EMC/dev/emc
DeniseWorthen Dec 6, 2019
fb02b3a
Merge pull request #5 from NOAA-EMC/dev/emc
DeniseWorthen Jan 16, 2020
5927048
Merge pull request #6 from NOAA-EMC/dev/emc
DeniseWorthen Jan 24, 2020
1be1217
Merge pull request #7 from NOAA-EMC/dev/emc
DeniseWorthen Apr 6, 2020
d537911
Merge pull request #9 from NOAA-EMC/dev/emc
DeniseWorthen Apr 9, 2020
58a69fc
Merge pull request #10 from NOAA-EMC/dev/emc
DeniseWorthen Apr 16, 2020
6371e48
Merge remote-tracking branch 'upstream/dev/emc' into dev/emc
DeniseWorthen Jul 10, 2020
40bfb4b
Merge remote-tracking branch 'upstream/dev/emc' into dev/emc
DeniseWorthen Aug 1, 2020
e4ca1dc
Merge remote-tracking branch 'upstream/dev/emc' into dev/emc
DeniseWorthen Aug 6, 2020
4e51bae
Revert "Merge remote-tracking branch 'upstream/dev/emc' into dev/emc"
DeniseWorthen Aug 7, 2020
6164f63
manual add of dev/emc changes (statediagnose)
DeniseWorthen Sep 1, 2020
bfbd95a
white space changes
DeniseWorthen Sep 1, 2020
16ade2f
Merge remote-tracking branch 'upstream/dev/emc' into dev/emc
DeniseWorthen Sep 9, 2020
f3bb728
Merge remote-tracking branch 'upstream/dev/emc' into dev/emc
DeniseWorthen Oct 19, 2020
a98f7db
Merge remote-tracking branch 'upstream/dev/emc' into dev/emc
DeniseWorthen Nov 25, 2020
f1041d1
Fixed bugs in CG_action, matrix_diagonal and calc_shelf_visc in
OlgaSergienko Dec 16, 2020
39dd3e3
Modified MOM_ice_shelf_dynamics.F90
OlgaSergienko Dec 16, 2020
d27bcbd
Matt's changes to drivers
OlgaSergienko Dec 23, 2020
ebac0ad
Modifications to register_diag_field in MOM_ice_shelf_dynamics to mak…
OlgaSergienko Dec 29, 2020
69b2a23
Merge remote-tracking branch 'upstream/dev/emc' into dev/emc
DeniseWorthen Jan 6, 2021
29d7680
Add two halo updates for taux and tauy in mom_surface_forcing_nupoc
breichl Jan 15, 2021
91282c1
add brandon's halo update fix for LI_2016
DeniseWorthen Jan 15, 2021
cec1ad3
Merge pull request #49 from breichl/user/bgr/Tau_halo_updates_in_nupoc
jiandewang Jan 17, 2021
d63c2de
Merge remote-tracking branch 'GFDL/main' into feature/update-to-GFDL-…
jiandewang Jan 21, 2021
b544dad
Merge remote-tracking branch 'upstream/dev/emc' into dev/emc
DeniseWorthen Jan 22, 2021
e928fe2
Merge branch 'dev/emc' into bugfix/li2016fix
DeniseWorthen Jan 22, 2021
66ec49b
Merge remote-tracking branch 'JiandeWang/feature/update-to-GFDL-20210…
DeniseWorthen Jan 22, 2021
e7d0976
Fixes latent heat from fprec and frunoff
gustavo-marques Jan 21, 2021
faeb139
Merge pull request #1 from DeniseWorthen/bugfix/li2016fix
jiandewang Jan 22, 2021
d531a32
Merge pull request #51 from jiandewang/feature/update-to-GFDL-20210120
jiandewang Jan 27, 2021
7db2cc7
make mom mesh optional
DeniseWorthen Jan 28, 2021
13a5a2e
comment out mask check which fails for mx100
DeniseWorthen Jan 28, 2021
12b3895
Merge branch 'dev/emc' into feature/optmesh
DeniseWorthen Jan 29, 2021
a34ebb1
remove tempory bypass of mesh abort code
DeniseWorthen Jan 29, 2021
f30f636
corrected indecises in computation of driving stresses
OlgaSergienko Feb 9, 2021
7752052
fixed ice-shelf advection
OlgaSergienko Feb 10, 2021
cdc7690
Merge pull request #54 from DeniseWorthen/feature/optmesh
jiandewang Feb 11, 2021
f0ae41c
modified viscosity computations
OlgaSergienko Feb 11, 2021
89f4386
corrected initialize_boundary_channel call
OlgaSergienko Feb 18, 2021
8912b13
Fix the bug that Rayleigh_[uv] was not
herrwang0 Feb 20, 2021
271bfce
corrected boundary mask in init_boundary_channel and updated u_ and
OlgaSergienko Feb 22, 2021
fdd83e6
dynamic ice shelf with non-linear viscosity and evolving ice thickness
OlgaSergienko Feb 22, 2021
42eb7c7
1. Initialize Rayleigh_[uv] to separate loops
herrwang0 Feb 24, 2021
a0b296e
Remove the trailing space
herrwang0 Feb 24, 2021
9544de2
Remove blank line spaces
herrwang0 Feb 24, 2021
32cfe35
modified MOM_ice_shelf_initialize for testing with viscosity from a file
OlgaSergienko Feb 24, 2021
ac88645
Merge branch 'dev/gfdl' into fix-wavedrag-initRayleigh
marshallward Feb 25, 2021
a729a7f
Merge commit '00c2819457ab6d2497c871ce9a02d5e67e7f741c' into feature/…
jiandewang Feb 25, 2021
f06669e
Merge pull request #1329 from herrwang0/fix-wavedrag-initRayleigh
marshallward Feb 25, 2021
fb882c9
Fix a missing line to reset vbt if smaller than vel_underflow in MOM_…
herrwang0 Feb 25, 2021
0393546
Depth-integrated momentum budget diagnostics
hmkhatri Feb 25, 2021
73addc4
Depth-integrated momentum budget diagnostics
hmkhatri Feb 25, 2021
5f827ed
typo correction
hmkhatri Feb 25, 2021
77d44cb
Dimensional consistency test
hmkhatri Mar 1, 2021
2c4137b
dimensions
hmkhatri Mar 1, 2021
2165ebb
dimen.
hmkhatri Mar 1, 2021
7ed57b0
H_to_m
hmkhatri Mar 1, 2021
e52eabf
Change to stack arrays for 2D diagnostics
hmkhatri Mar 2, 2021
b895f1e
Changed to stack arrays
hmkhatri Mar 2, 2021
28b1ac9
Update CVMix to v0.93-beta (no API change)
adcroft Mar 2, 2021
34dc0c8
Update CVMix to v0.94b-beta with API change
adcroft Mar 2, 2021
e56d453
Update CVMix to v0.98-beta
adcroft Mar 2, 2021
a545274
Merge pull request #1340 from herrwang0/fix-vel_underflow-missingline
marshallward Mar 2, 2021
fbf0e91
Merge branch 'dev/gfdl' into add_diagnostic
marshallward Mar 2, 2021
b57431d
Merge pull request #1343 from hmkhatri/add_diagnostic
marshallward Mar 3, 2021
5483bfe
Cleaned initialize_ice_shelf_boundary_channel
OlgaSergienko Mar 3, 2021
9aa75c8
Modified MOM_ice_shelf_initialize.F90
OlgaSergienko Mar 3, 2021
2232fa2
corrected style errors in MOM_ice_shelf.F90; MOM_ice_shelf_dynamics.F…
OlgaSergienko Mar 3, 2021
aed4f0e
More style errors
OlgaSergienko Mar 3, 2021
43dadc1
Defined variables in ice_shelf_solve_outer
OlgaSergienko Mar 3, 2021
00cb11c
Merge pull request #56 from jiandewang/feature/update-to-GFDL-20210224
jiandewang Mar 4, 2021
ba7bbab
Typo corrected - Change from Jsd to JsdB in array allocations
hmkhatri Mar 5, 2021
075be64
Typo correction - Change from Jsd to JsdB in array allocations
hmkhatri Mar 5, 2021
e7a80bc
Merge pull request #1345 from hmkhatri/add_diagnostic
marshallward Mar 5, 2021
651b467
Bugfix: FGNV streamfunction vertical bounds
marshallward Mar 6, 2021
a4049e7
Merge branch 'dev/gfdl' into main
marshallward Mar 8, 2021
3703ca7
Merge remote-tracking branch 'GFDL/main' into feature/update-to-GFDL-…
jiandewang Mar 8, 2021
54033aa
Bugfix: empty restart_input_dir for *_solo.res
herrwang0 Mar 9, 2021
5b293ef
Merge branch 'dev/gfdl' into fix-ocean_solo-res-dir
herrwang0 Mar 9, 2021
1b05969
Merge pull request #1348 from herrwang0/fix-ocean_solo-res-dir
marshallward Mar 9, 2021
887c7af
Merge branch 'main' into merge_from_main
marshallward Mar 9, 2021
b47e493
Removed blocks of commented code. Added parentheses in calc_shelf_visc
OlgaSergienko Mar 9, 2021
56e9147
Merge pull request #1349 from marshallward/merge_from_main
adcroft Mar 9, 2021
bb5eb25
Explicitly set (1x1) io_domain as a default
Hallberg-NOAA Mar 9, 2021
5b686c8
add parameter for allowing land mask changes
DeniseWorthen Mar 10, 2021
8494ba8
change logical from "topog_..." to "topo_..."
DeniseWorthen Mar 10, 2021
abc8fe4
Removed blocks of commented text and multiplications by 0
OlgaSergienko Mar 11, 2021
250f007
Merge pull request #1350 from Hallberg-NOAA/set_io_domain
marshallward Mar 11, 2021
0d60fd0
Change units of slope returned from calc_isoneutral_slopes() to "Z L-1"
adcroft Mar 12, 2021
b911a39
Merge branch 'dev/gfdl' into cvmix-update
marshallward Mar 12, 2021
5839494
Merge branch 'dev/gfdl' into ice_dynamics
Hallberg-NOAA Mar 12, 2021
4255ada
Merge pull request #1344 from adcroft/cvmix-update
marshallward Mar 12, 2021
ab241b6
Merge branch 'dev/gfdl' into units-for-slope
marshallward Mar 12, 2021
a6f680c
Merge pull request #1351 from adcroft/units-for-slope
marshallward Mar 12, 2021
33d28f1
Merge branch 'dev/gfdl' into fgnv_bound_fix
adcroft Mar 12, 2021
8dd9072
Merge pull request #1346 from marshallward/fgnv_bound_fix
adcroft Mar 13, 2021
e5a4035
Merge pull request #61 from jiandewang/feature/update-to-GFDL-20210308
jiandewang Mar 13, 2021
b89152c
Merge branch 'dev/emc' into feature/allowmaskchanges
DeniseWorthen Mar 14, 2021
edc15f6
Merge branch 'dev/gfdl' into ice_dynamics
Hallberg-NOAA Mar 17, 2021
3193ab0
Merge pull request #1338 from OlgaSergienko/ice_dynamics
Hallberg-NOAA Mar 18, 2021
b33b3af
Testing: Recurse target submodules, LDFLAGS hook
marshallward Mar 23, 2021
4fd897d
Merge pull request #1355 from marshallward/test_submod_update
adcroft Mar 23, 2021
a1206ed
Merge branch 'dev/gfdl' into emc_update_20210322
marshallward Mar 23, 2021
8cc5018
Style: Line length fix in MCT_cap
marshallward Mar 23, 2021
b92d763
Merge pull request #1357 from marshallward/emc_update_20210322
adcroft Mar 25, 2021
b6c7fdb
change default value of use_mommesh as true
jiandewang Apr 1, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .testing/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ FCFLAGS_COVERAGE ?=
# - FMS cannot be built with the same aggressive initialization flags as MOM6,
# so FCFLAGS_INIT is used to provide additional MOM6 configuration.

# User-defined LDFLAGS (applied to all builds and FMS)
LDFLAGS_USER ?=

# Set to `true` to require identical results from DEBUG and REPRO builds
# NOTE: Many compilers (Intel, GCC on ARM64) do not yet produce identical
# results across DEBUG and REPRO builds (as defined below), so we disable on
Expand Down Expand Up @@ -217,8 +220,8 @@ REPRO_FCFLAGS := FCFLAGS="$(FCFLAGS_REPRO) $(FCFLAGS_FMS)"
OPENMP_FCFLAGS := FCFLAGS="$(FCFLAGS_DEBUG) $(FCFLAGS_INIT) $(FCFLAGS_FMS)"
TARGET_FCFLAGS := FCFLAGS="$(FCFLAGS_DEBUG) $(FCFLAGS_INIT) $(FCFLAGS_FMS)"

MOM_LDFLAGS := LDFLAGS="$(LDFLAGS_FMS)"
SYMMETRIC_LDFLAGS := LDFLAGS="$(COVERAGE) $(LDFLAGS_FMS)"
MOM_LDFLAGS := LDFLAGS="$(LDFLAGS_FMS) $(LDFLAGS_USER)"
SYMMETRIC_LDFLAGS := LDFLAGS="$(COVERAGE) $(LDFLAGS_FMS) $(LDFLAGS_USER)"


# Environment variable configuration
Expand Down Expand Up @@ -286,7 +289,7 @@ $(TARGET_CODEBASE)/ac/configure: $(TARGET_CODEBASE)

$(TARGET_CODEBASE):
git clone --recursive $(MOM_TARGET_URL) $@
cd $@ && git checkout $(MOM_TARGET_BRANCH)
cd $@ && git checkout --recurse-submodules $(MOM_TARGET_BRANCH)


#---
Expand Down
3 changes: 2 additions & 1 deletion config_src/drivers/ice_solo_driver/ice_shelf_driver.F90
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ program Shelf_main
endif
endif

call Get_MOM_Input(param_file, dirs)

! Read ocean_solo restart, which can override settings from the namelist.
if (file_exists(trim(dirs%restart_input_dir)//'ice_solo.res')) then
call open_ASCII_file(unit, trim(dirs%restart_input_dir)//'ice_solo.res', action=READONLY_FILE)
Expand Down Expand Up @@ -215,7 +217,6 @@ program Shelf_main
Start_time = real_to_time(0.0)
endif

call Get_MOM_Input(param_file, dirs)
! Determining the internal unit scaling factors for this run.
call unit_scaling_init(param_file, US)

Expand Down
13 changes: 7 additions & 6 deletions config_src/drivers/mct_cap/mom_surface_forcing_mct.F90
Original file line number Diff line number Diff line change
Expand Up @@ -486,17 +486,18 @@ subroutine convert_IOB_to_fluxes(IOB, fluxes, index_bounds, Time, valid_time, G,

! latent heat flux (W/m^2)
fluxes%latent(i,j) = 0.0
! contribution from frozen ppt
! contribution from frozen ppt (notice minus sign since fprec is positive into the ocean)
if (associated(IOB%fprec)) then
fluxes%latent(i,j) = fluxes%latent(i,j) + &
fluxes%latent(i,j) = fluxes%latent(i,j) - &
IOB%fprec(i-i0,j-j0)*US%W_m2_to_QRZ_T*CS%latent_heat_fusion
fluxes%latent_fprec_diag(i,j) = G%mask2dT(i,j) * IOB%fprec(i-i0,j-j0)*US%W_m2_to_QRZ_T*CS%latent_heat_fusion
fluxes%latent_fprec_diag(i,j) = - G%mask2dT(i,j) * IOB%fprec(i-i0,j-j0)*US%W_m2_to_QRZ_T*CS%latent_heat_fusion
endif
! contribution from frozen runoff
! contribution from frozen runoff (notice minus sign since rofi_flux is positive into the ocean)
if (associated(fluxes%frunoff)) then
fluxes%latent(i,j) = fluxes%latent(i,j) + &
fluxes%latent(i,j) = fluxes%latent(i,j) - &
IOB%rofi_flux(i-i0,j-j0)*US%W_m2_to_QRZ_T*CS%latent_heat_fusion
fluxes%latent_frunoff_diag(i,j) = G%mask2dT(i,j) * IOB%rofi_flux(i-i0,j-j0)*US%W_m2_to_QRZ_T*CS%latent_heat_fusion
fluxes%latent_frunoff_diag(i,j) = -G%mask2dT(i,j) &
* IOB%rofi_flux(i-i0,j-j0)*US%W_m2_to_QRZ_T*CS%latent_heat_fusion
endif
! contribution from evaporation
if (associated(IOB%q_flux)) then
Expand Down
23 changes: 22 additions & 1 deletion config_src/drivers/nuopc_cap/mom_cap.F90
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ module MOM_cap_mod
use ESMF, only: ESMF_AlarmCreate, ESMF_ClockGetAlarmList, ESMF_AlarmList_Flag
use ESMF, only: ESMF_AlarmGet, ESMF_AlarmIsCreated, ESMF_ALARMLIST_ALL, ESMF_AlarmIsEnabled
use ESMF, only: ESMF_STATEITEM_NOTFOUND, ESMF_FieldWrite
use ESMF, only: ESMF_END_ABORT, ESMF_Finalize
use ESMF, only: operator(==), operator(/=), operator(+), operator(-)

! TODO ESMF_GridCompGetInternalState does not have an explicit Fortran interface.
Expand Down Expand Up @@ -135,6 +136,7 @@ module MOM_cap_mod
logical :: profile_memory = .true.
logical :: grid_attach_area = .false.
logical :: use_coldstart = .true.
logical :: use_mommesh = .false.
character(len=128) :: scalar_field_name = ''
integer :: scalar_field_count = 0
integer :: scalar_field_idx_grid_nx = 0
Expand All @@ -147,7 +149,7 @@ module MOM_cap_mod
type(ESMF_GeomType_Flag) :: geomtype = ESMF_GEOMTYPE_MESH
#else
logical :: cesm_coupled = .false.
type(ESMF_GeomType_Flag) :: geomtype = ESMF_GEOMTYPE_GRID
type(ESMF_GeomType_Flag) :: geomtype
#endif
character(len=8) :: restart_mode = 'alarms'

Expand Down Expand Up @@ -347,6 +349,25 @@ subroutine InitializeP0(gcomp, importState, exportState, clock, rc)
write(logmsg,*) use_coldstart
call ESMF_LogWrite('MOM_cap:use_coldstart = '//trim(logmsg), ESMF_LOGMSG_INFO)

use_mommesh = .false.
call NUOPC_CompAttributeGet(gcomp, name="use_mommesh", value=value, &
isPresent=isPresent, isSet=isSet, rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
if (isPresent .and. isSet) use_mommesh=(trim(value)=="true")
write(logmsg,*) use_mommesh
call ESMF_LogWrite('MOM_cap:use_mommesh = '//trim(logmsg), ESMF_LOGMSG_INFO)

if(use_mommesh)then
geomtype = ESMF_GEOMTYPE_MESH
call NUOPC_CompAttributeGet(gcomp, name='mesh_ocn', isPresent=isPresent, isSet=isSet, rc=rc)
if (.not. isPresent .and. .not. isSet) then
call ESMF_LogWrite('geomtype set to mesh but mesh_ocn is not specified', ESMF_LOGMSG_INFO)
call ESMF_Finalize(endflag=ESMF_END_ABORT)
endif
else
geomtype = ESMF_GEOMTYPE_GRID
endif

end subroutine

!> Called by NUOPC to advertise import and export fields. "Advertise"
Expand Down
14 changes: 8 additions & 6 deletions config_src/drivers/nuopc_cap/mom_surface_forcing_nuopc.F90
Original file line number Diff line number Diff line change
Expand Up @@ -497,15 +497,17 @@ subroutine convert_IOB_to_fluxes(IOB, fluxes, index_bounds, Time, valid_time, G,
fluxes%seaice_melt(i,j) = kg_m2_s_conversion * G%mask2dT(i,j) * IOB%seaice_melt(i-i0,j-j0)

fluxes%latent(i,j) = 0.0
! notice minus sign since fprec is positive into the ocean
if (associated(IOB%fprec)) then
fluxes%latent(i,j) = fluxes%latent(i,j) + &
fluxes%latent(i,j) = fluxes%latent(i,j) - &
IOB%fprec(i-i0,j-j0)*US%W_m2_to_QRZ_T*CS%latent_heat_fusion
fluxes%latent_fprec_diag(i,j) = G%mask2dT(i,j) * IOB%fprec(i-i0,j-j0)*US%W_m2_to_QRZ_T*CS%latent_heat_fusion
fluxes%latent_fprec_diag(i,j) = - G%mask2dT(i,j) * IOB%fprec(i-i0,j-j0)*US%W_m2_to_QRZ_T*CS%latent_heat_fusion
endif
! notice minus sign since frunoff is positive into the ocean
if (associated(IOB%frunoff)) then
fluxes%latent(i,j) = fluxes%latent(i,j) + &
fluxes%latent(i,j) = fluxes%latent(i,j) - &
IOB%frunoff(i-i0,j-j0) * US%W_m2_to_QRZ_T * CS%latent_heat_fusion
fluxes%latent_frunoff_diag(i,j) = G%mask2dT(i,j) * &
fluxes%latent_frunoff_diag(i,j) = - G%mask2dT(i,j) * &
IOB%frunoff(i-i0,j-j0) * US%W_m2_to_QRZ_T * CS%latent_heat_fusion
endif
if (associated(IOB%q_flux)) then
Expand Down Expand Up @@ -794,7 +796,7 @@ subroutine convert_IOB_to_forces(IOB, forces, index_bounds, Time, G, US, CS)
endif
forces%ustar(i,j) = sqrt(gustiness*Irho0 + Irho0*tau_mag)
enddo ; enddo

call pass_vector(forces%taux, forces%tauy, G%Domain, halo=1)
elseif (wind_stagger == AGRID) then
call pass_vector(taux_at_h, tauy_at_h, G%Domain, To_All+Omit_Corners, stagger=AGRID, halo=1)

Expand All @@ -820,7 +822,7 @@ subroutine convert_IOB_to_forces(IOB, forces, index_bounds, Time, G, US, CS)
forces%ustar(i,j) = sqrt(gustiness*Irho0 + Irho0 * G%mask2dT(i,j) * &
sqrt(taux_at_h(i,j)**2 + tauy_at_h(i,j)**2))
enddo ; enddo

call pass_vector(forces%taux, forces%tauy, G%Domain, halo=1)
else ! C-grid wind stresses.
if (G%symmetric) &
call fill_symmetric_edges(forces%taux, forces%tauy, G%Domain)
Expand Down
4 changes: 4 additions & 0 deletions config_src/drivers/solo_driver/MOM_driver.F90
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@ program MOM_main
! This call sets the number and affinity of threads with openMP.
!$ call set_MOM_thread_affinity(ocean_nthreads, use_hyper_thread)

! This call is required to initiate dirs%restart_input_dir for ocean_solo.res
! The contents of dirs will be reread in initialize_MOM.
call get_MOM_input(dirs=dirs)

! Read ocean_solo restart, which can override settings from the namelist.
if (file_exists(trim(dirs%restart_input_dir)//'ocean_solo.res')) then
call open_ASCII_file(unit, trim(dirs%restart_input_dir)//'ocean_solo.res', action=READONLY_FILE)
Expand Down
4 changes: 2 additions & 2 deletions config_src/infra/FMS1/MOM_diag_manager_infra.F90
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ module MOM_diag_manager_infra
use diag_manager_mod, only : register_diag_field_fms => register_diag_field
use diag_manager_mod, only : register_static_field_fms => register_static_field
use diag_manager_mod, only : get_diag_field_id_fms => get_diag_field_id
use time_manager_mod, only : time_type
use MOM_time_manager, only : time_type
use MOM_domain_infra, only : MOM_domain_type
use MOM_error_handler, only : MOM_error, FATAL, WARNING
use MOM_error_infra, only : MOM_error => MOM_err, FATAL, WARNING

implicit none ; private

Expand Down
4 changes: 3 additions & 1 deletion config_src/infra/FMS1/MOM_domain_infra.F90
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module MOM_domain_infra
! This file is part of MOM6. See LICENSE.md for the license.

use MOM_coms_infra, only : PE_here, root_PE, num_PEs
use MOM_cpu_clock, only : cpu_clock_begin, cpu_clock_end
use MOM_cpu_clock_infra, only : cpu_clock_begin, cpu_clock_end
use MOM_error_infra, only : MOM_error=>MOM_err, NOTE, WARNING, FATAL

use mpp_domains_mod, only : domain2D, domain1D
Expand Down Expand Up @@ -1689,6 +1689,8 @@ subroutine clone_MD_to_d2D(MD_in, mpp_domain, min_halo, halo_size, symmetric, &
if ((MD_in%io_layout(1) + MD_in%io_layout(2) > 0) .and. &
(MD_in%layout(1)*MD_in%layout(2) > 1)) then
call mpp_define_io_domain(mpp_domain, MD_in%io_layout)
else
call mpp_define_io_domain(mpp_domain, (/ 1, 1 /) )
endif

end subroutine clone_MD_to_d2D
Expand Down
Loading