Skip to content

Commit

Permalink
Merge remote-tracking branch 'ESCOMP/main' into feature/emc_updates
Browse files Browse the repository at this point in the history
  • Loading branch information
DeniseWorthen committed Nov 7, 2023
2 parents e5d08d4 + 914957b commit 9972d73
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 38 deletions.
2 changes: 1 addition & 1 deletion cesm/driver/esmApp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ program esmApp
! Call Run for the ensemble driver
!-----------------------------------------------------------------------------
call ESMF_GridCompRun(ensemble_driver_comp, userRc=urc, rc=rc)
if (ESMF_LogFoundError(rcToCheck=urc, msg=ESMF_LOGERR_PASSTHRU, &
if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, &
line=__LINE__, &
file=__FILE__)) &
call ESMF_Finalize(endflag=ESMF_END_ABORT)
Expand Down
12 changes: 11 additions & 1 deletion cesm/flux_atmocn/shr_flux_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,17 @@ SUBROUTINE flux_atmOcn(logunit, nMax ,zbot ,ubot ,vbot ,thbot , &


qsat(Tk) = 640380.0_R8 / exp(5107.4_R8/Tk)
cdn(Umps) = 0.0027_R8 / Umps + 0.000142_R8 + 0.0000764_R8 * Umps

! Large and Yeager 2009
cdn(Umps) = 0.0027_R8 / min(33.0000_R8,Umps) + 0.000142_R8 + &
0.0000764_R8 * min(33.0000_R8,Umps) - 3.14807e-13_r8 * min(33.0000_R8,Umps)**6
! Capped Large and Pond by wind
! cdn(Umps) = 0.0027_R8 / min(30.0_R8,Umps) + 0.000142_R8 + 0.0000764_R8 * min(30.0_R8,Umps)
! Capped Large and Pond by Cd
! cdn(Umps) = min(0.0025_R8, (0.0027_R8 / Umps + 0.000142_R8 + 0.0000764_R8 * Umps ))
! Large and Pond
! cdn(Umps) = 0.0027_R8 / Umps + 0.000142_R8 + 0.0000764_R8 * Umps

psimhu(xd) = log((1.0_R8+xd*(2.0_R8+xd))*(1.0_R8+xd*xd)/8.0_R8) - 2.0_R8*atan(xd) + 1.571_R8
psixhu(xd) = 2.0_R8 * log((1.0_R8 + xd*xd)/2.0_R8)

Expand Down
26 changes: 9 additions & 17 deletions cime_config/config_component.xml
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,15 @@
<desc>List of job ids for most recent case.submit</desc>
</entry>

<entry id="JOB_PRIORITY">
<type>char</type>
<default_value>regular</default_value>
<valid_values>regular,premium,economy</valid_values>
<group>run_begin_stop_restart</group>
<file>env_run.xml</file>
<desc>job priority for systems supporting this option</desc>
</entry>

<!-- ===================================================================== -->
<!-- definitions archive -->
<!-- ===================================================================== -->
Expand Down Expand Up @@ -1026,23 +1035,6 @@
this to work.</desc>
</entry>

<entry id="ESMF_LOGFILE_KIND">
<type>char</type>
<valid_values>ESMF_LOGKIND_SINGLE,ESMF_LOGKIND_MULTI,ESMF_LOGKIND_NONE</valid_values>
<default_value>ESMF_LOGKIND_NONE</default_value>
<group>run_flags</group>
<file>env_run.xml</file>
<desc>
Determines what ESMF log files (if any) are generated when
USE_ESMF_LIB is TRUE.
ESMF_LOGKIND_SINGLE: Use a single log file, combining messages from
all of the PETs. Not supported on some platforms.
ESMF_LOGKIND_MULTI: Use multiple log files -- one per PET.
ESMF_LOGKIND_NONE: Do not issue messages to a log file.
By default, no ESMF log files are generated.
</desc>
</entry>

<entry id="ESMF_VERBOSITY_LEVEL">
<type>char</type>
<valid_values>off,low,high,max</valid_values>
Expand Down
18 changes: 0 additions & 18 deletions cime_config/namelist_definition_drv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,6 @@
</values>
</entry>

<entry id="esmf_logging" modify_via_xml="ESMF_LOGFILE_KIND">
<type>char</type>
<category>cime_pes</category>
<group>PELAYOUT_attributes</group>
<desc>
Determines what ESMF log files (if any) are generated when
USE_ESMF_LIB is TRUE.
ESMF_LOGKIND_SINGLE: Use a single log file, combining messages from
all of the PETs. Not supported on some platforms.
ESMF_LOGKIND_MULTI: Use multiple log files — one per PET.
ESMF_LOGKIND_NONE: Do not issue messages to a log file.
By default, no ESMF log files are generated.
</desc>
<values>
<value>$ESMF_LOGFILE_KIND</value>
</values>
</entry>

<entry id="pio_asyncio_ntasks" modify_via_xml="PIO_ASYNCIO_NTASKS">
<type>integer</type>
<category>pio</category>
Expand Down
8 changes: 8 additions & 0 deletions mediator/esmFldsExchange_ufs_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,14 @@ subroutine esmFldsExchange_ufs(gcomp, phase, rc)
call addfld_ocnalb('So_anidf')
end if

! Advertise the ocean albedos. These are not sent to the ATM in UFS.
if (phase == 'advertise') then
call addfld_ocnalb('So_avsdr')
call addfld_ocnalb('So_avsdf')
call addfld_ocnalb('So_anidr')
call addfld_ocnalb('So_anidf')
end if

!=====================================================================
! FIELDS TO ATMOSPHERE (compatm)
!=====================================================================
Expand Down
2 changes: 1 addition & 1 deletion mediator/med_phases_ocnalb_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ subroutine med_phases_ocnalb_init(gcomp, ocnalb, rc)
call ESMF_LogWrite(trim(msg), ESMF_LOGMSG_INFO)
end if
end if
write(msg,'(A,l)') trim(subname)//': use_nextswcday setting is ',use_nextswcday
write(msg,'(A,l1)') trim(subname)//': use_nextswcday setting is ',use_nextswcday
call ESMF_LogWrite(trim(msg), ESMF_LOGMSG_INFO)

if (dbug_flag > 5) then
Expand Down

0 comments on commit 9972d73

Please sign in to comment.