Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
188 commits
Select commit Hold shift + click to select a range
646ad20
changes to drydep namelist definitions
fvitt Nov 4, 2021
afd91d4
add new flux computation for UFS model and add new coupling mode for …
uturuncoglu Nov 24, 2021
3758f9f
fix area field for new flux algorithm
uturuncoglu Nov 29, 2021
0f635e1
send fluxes to atmospheric model
uturuncoglu Dec 7, 2021
53ebc24
initial implementation for sending fluxes to UFS ATM
uturuncoglu Dec 19, 2021
7784990
merge with origin/master
uturuncoglu Dec 30, 2021
eebde7f
add support for external land component
uturuncoglu Jan 4, 2022
d1e0e08
update exchange fields for nems to include land
uturuncoglu Jan 4, 2022
bba5b4e
update with master
uturuncoglu Jan 6, 2022
cdfbb35
update ccpp aoflux code
uturuncoglu Jan 8, 2022
a80db60
fix upward longwave sign issue
uturuncoglu Jan 11, 2022
2d57af5
mods to solve sign issue in the fluxes
uturuncoglu Jan 12, 2022
7471055
update to use both flux scheme (cesm, ccpp) under UFS
uturuncoglu Jan 13, 2022
5fec3a0
revert mods in prep atm phase
uturuncoglu Jan 13, 2022
35fb61b
update exchnage field to work with fully coupled application
uturuncoglu Jan 21, 2022
22af6e5
initial attempt to have host model for CCPP
uturuncoglu Jan 28, 2022
84be138
Minor updates to get CCPP handshake right
climbfuji Jan 31, 2022
e22ebb6
Merge pull request #1 from climbfuji/exchange_grid_dom_20220130
uturuncoglu Jan 31, 2022
cdb2025
more work for CCPP host model
uturuncoglu Feb 1, 2022
6237d13
Updates and bug fixes to complete ccpp_prebuild.py call
climbfuji Feb 3, 2022
0c9b470
Include Sl_soilw field exchange for CAM CARMA aerosol configurations …
fvitt Feb 4, 2022
4297d0b
minor fixes
uturuncoglu Feb 4, 2022
699c177
add support for sfc_diff
uturuncoglu Feb 5, 2022
e1dead1
fix namespace collision
uturuncoglu Feb 6, 2022
792be4c
update CCPP host model
uturuncoglu Feb 8, 2022
2a3cb9e
fix latent and sensible heat fluxes and clean code
uturuncoglu Feb 9, 2022
f127fa6
add new coupling mode for side by side flux comparison
uturuncoglu Feb 9, 2022
e204b94
fix for the cases if flds_scalar_index_nextsw_cday is not available
uturuncoglu Feb 16, 2022
e813a97
fix CCPP host model for latent and sensible heat fluxes
uturuncoglu Feb 22, 2022
4f93182
fix aoflux calculation on agrid and add missing error checks
uturuncoglu Feb 24, 2022
8526e31
do not use biliear and patch under UFS exchnage grid
uturuncoglu Feb 24, 2022
bf9e4b3
add support to get ccpp suite from config file
uturuncoglu Feb 25, 2022
c719817
initialize count
Feb 28, 2022
a75898f
Merge pull request #271 from uturuncoglu/hotfix/aoflux_agrid
uturuncoglu Mar 2, 2022
82ee2f3
Merge pull request #273 from peverwhee/nuopc_tests
jedwards4b Mar 9, 2022
abce725
clean version of add_container_support (#276)
jedwards4b Mar 30, 2022
a332fc8
Addition of enthalpy fluxes in CESM (#278)
mvertens Apr 1, 2022
f6c8f0b
correct COMP_NAME (was CIME_COMP)
jedwards4b Apr 4, 2022
20af1d7
Merge pull request #280 from jedwards4b/buildexe_fix
jedwards4b Apr 4, 2022
f12b1d9
fix for data configurations
uturuncoglu Apr 6, 2022
27dd3d0
move pio parameters to nuopc.runconfig input file
jedwards4b Feb 7, 2022
a21f70b
X case compiles
jedwards4b Feb 7, 2022
a3e3f87
ongoing work
jedwards4b Feb 18, 2022
aab10fc
more read config
jedwards4b Mar 14, 2022
8f4737d
get logging to work
jedwards4b Mar 17, 2022
25d0e73
some cleanup
jedwards4b Mar 17, 2022
1193194
must work with ufs
jedwards4b Mar 17, 2022
aff27cb
more logging fixes, correct syntax in shr_pio_mod
jedwards4b Mar 17, 2022
d23ad4b
clean up code
jedwards4b Mar 23, 2022
d8e82e8
fix bugs in pio interface
jedwards4b Apr 1, 2022
9947809
update CMEPS
uturuncoglu Apr 12, 2022
167b0eb
handle inst number in fortran
jedwards4b Apr 13, 2022
fb16730
Merge pull request #275 from jedwards4b/modelio_to_runconfig
jedwards4b Apr 15, 2022
6654167
add option to write meshes and update code that retrieve area informa…
uturuncoglu Apr 17, 2022
383f11c
update ccpp host based on recent changes in ccpp framework
uturuncoglu Apr 17, 2022
d56d53b
fix for providing cell area to CCPP host model
uturuncoglu Apr 19, 2022
c99de05
make ccpp physics options configurable
uturuncoglu Apr 19, 2022
ef360ea
Refactor nems field exchange; set default masks for mapping in med_in…
DeniseWorthen Apr 22, 2022
3018d88
use mesh file instead of grid name (#285)
jedwards4b Apr 25, 2022
150677a
dont repeat user_nl entries (#289)
jedwards4b Apr 26, 2022
a7886b9
changes to fix scam and add wave/ice coupling (#290)
mvertens Apr 26, 2022
5acea36
fixes for aquaplanet
Apr 27, 2022
b6549d6
Merge pull request #292 from mvertens/feature/fix_cmeps0_13_57
jedwards4b Apr 27, 2022
6a54cb6
fixes to get can single column SCT test to pass (#293)
mvertens Apr 28, 2022
3dbaa6c
need to initialize these variables
jedwards4b Apr 29, 2022
4223e15
Merge pull request #294 from jedwards4b/initialize_scol_nij
jedwards4b Apr 29, 2022
c57d725
fix name of driver log
jedwards4b Apr 29, 2022
260ab82
Merge pull request #295 from jedwards4b/fix_MCC_test
jedwards4b Apr 29, 2022
a4c7438
add wave/cice coupling fields (#296)
mvertens May 3, 2022
bed9c56
update CMEPS and fix to work with latest version of CCPP physics
uturuncoglu May 4, 2022
f2385cc
fix char length issue for gnu compiler
uturuncoglu May 4, 2022
44b4e8f
update esmf build in workflow
jedwards4b May 5, 2022
d71c522
fix build
jedwards4b May 5, 2022
89681d4
fix error in esmf build
jedwards4b May 5, 2022
32e544a
fix pio version
jedwards4b May 5, 2022
95e148b
Merge pull request #298 from jedwards4b/workflow_update_esmf
jedwards4b May 5, 2022
36d880a
Merge remote-tracking branch 'origin/master' into feature/xgrid_dev_host
uturuncoglu May 5, 2022
139047e
make qmin constant
uturuncoglu May 5, 2022
1bef7aa
declare constants as parameters
uturuncoglu May 6, 2022
b0eee2c
fix for UFS OpnReqTests debug test
May 6, 2022
4d91092
Merge branch 'feature/xgrid_dev_host' of https://github.com/uturuncog…
May 6, 2022
d307cd5
fix threading issue in CCPP driver
uturuncoglu May 9, 2022
3fe2c87
update naming convention and use _med suffix in CCPP host model
May 10, 2022
dfdb479
add restart capability to CCPP host model
May 15, 2022
a8bb766
more work to bring restart capability to CCPP host model
May 16, 2022
355557a
fix to write data on exchange grid
uturuncoglu May 18, 2022
c542d8f
first step - reorder pio_init and move to ensemble_driver
jedwards4b May 18, 2022
5df8fd5
standardize subname variable
jedwards4b May 19, 2022
31f9316
more work for ccpp restart capability, agrid and ogrid are passing now
May 20, 2022
c90b9f1
fix ccpp restart for xgrid and add support for sfc_diag
May 21, 2022
773a48b
Merge remote-tracking branch 'origin/drydep_cmeps0.13.40' into dep_da…
fvitt May 24, 2022
f557497
read dep data from file; preserve seq_drydep_mod interface
fvitt May 25, 2022
c7e92a6
update to fix ORT issues
May 25, 2022
54e8ae5
add missing call to read restart file
May 25, 2022
14b8216
fix for gnu compiler
uturuncoglu May 25, 2022
b0e5418
change standard name of new option and couple of minor fix for debug …
uturuncoglu May 26, 2022
e1e91b5
fix conditional to check nproc
uturuncoglu May 26, 2022
2e3f061
fix for initial conditions, default is not to read
uturuncoglu May 26, 2022
81a2807
add new field to adjust new version of physics code
uturuncoglu May 27, 2022
a496972
more logging changes
jedwards4b May 27, 2022
b7b2cff
initialize drydep_nflds to zero
fvitt May 31, 2022
7ec1916
Merge pull request #282 from uturuncoglu/feature/xgrid_dev_host
uturuncoglu Jun 7, 2022
28e3f62
initialize async io logical
jedwards4b Jun 15, 2022
9aa32dc
add more error checking
jedwards4b Jun 15, 2022
ae2c368
merge to current master
jedwards4b Jun 15, 2022
89155de
update
uturuncoglu Jun 21, 2022
e1736b6
sync with master
uturuncoglu Jun 21, 2022
3516bbd
fix after merge with master
uturuncoglu Jun 21, 2022
e2d0bba
async io test passes ERS_Ln9.ne30pg3_ne30pg3_mg17.QPC6.cheyenne_intel…
jedwards4b Jun 23, 2022
694ac85
fix for land coupling
uturuncoglu Jun 23, 2022
c569aa6
clean print statement
uturuncoglu Jun 23, 2022
80408b4
add some comments
jedwards4b Jun 23, 2022
f3e0844
fix if block
jedwards4b Jun 24, 2022
28bcf74
Extract non-initialization parts of shr_pio_mod to a module in share
billsacks Jul 5, 2022
67ae99b
more log info
jedwards4b Jul 5, 2022
03ce9b7
Make pio_async_interface a module-level variable
billsacks Jul 5, 2022
1f8ce13
Rename init_pio to driver_pio
billsacks Jul 5, 2022
639adab
cleanup and comment
jedwards4b Jul 6, 2022
1ec59d0
add to use statement
jedwards4b Jul 6, 2022
2930f6b
CESM specific - activated atm/ocn flux scheme2 (#307)
mvertens Jul 8, 2022
3782c38
Merge pull request #306 from billsacks/fix_lilac_pio2
billsacks Jul 8, 2022
f56af79
state as of now
jedwards4b Jul 13, 2022
fdf5009
save for vacation
jedwards4b Jul 13, 2022
5f646a0
set wavice_coupling to false for now because it causes instabilities.…
alperaltuntas Jul 19, 2022
5e8d703
Merge pull request #303 from fvitt/dep_data_file
jedwards4b Jul 26, 2022
8088dd2
more debugged
jedwards4b Aug 8, 2022
c019982
more asyncio debugging;
jedwards4b Aug 9, 2022
c7b75d1
fix masking issue for land coupling
uturuncoglu Aug 11, 2022
8ba09a6
fix surface pressure issue for land coupling
uturuncoglu Aug 18, 2022
5e9c7d9
Update cime config namelist definition to include datmcomf/drv_flds_i…
adrifoster Aug 31, 2022
5559270
add namelist control of async rearranger
jedwards4b Sep 12, 2022
c91b15c
mods for land side-by-side configuration
uturuncoglu Sep 15, 2022
c550a3f
merge to latest master
jedwards4b Sep 21, 2022
cdbd5c1
merge to master
jedwards4b Sep 21, 2022
ce1bb64
put in correct way to set namelist for wavice coupling (#312)
mvertens Oct 6, 2022
325c107
changes that permits DAE test to work (#314)
mvertens Oct 7, 2022
962e753
simplify specification of stop_option, rest_option and history_option…
mvertens Oct 7, 2022
5157de0
Merge pull request #305 from jedwards4b/jedwards/asyncio
jedwards4b Oct 7, 2022
98e814f
Revert "first step - reorder pio_init and move to ensemble_driver"
jedwards4b Oct 12, 2022
6245807
Merge pull request #315 from ESCOMP/revert-305-jedwards/asyncio
jedwards4b Oct 12, 2022
978e0f2
was not working when atm and lnd did not share all tasks
jedwards4b Oct 12, 2022
6ee26a2
Merge pull request #310 from uturuncoglu/feature/lnd_noahmp
uturuncoglu Oct 12, 2022
1ba5eb4
fix a bug introduced in PR 313
jedwards4b Oct 13, 2022
ff8726f
Merge pull request #316 from jedwards4b/fix_drydep_initialize
jedwards4b Oct 13, 2022
5081a8e
fixes to instantaneous output
Oct 14, 2022
f3f34b0
fixes to time variable for instantaneous auxhist output
Oct 14, 2022
7b96332
fixed aux files 1-5 for atm
Oct 16, 2022
0e3bb2d
Merge branch 'master' into feature/fix_auxhist
Oct 16, 2022
76306f6
remove debug and obsolete statements
jedwards4b Nov 2, 2022
fa2ac92
Merge pull request #317 from mvertens/feature/fix_auxhist
jedwards4b Nov 2, 2022
56d71e4
Merge remote-tracking branch 'escomp/master' into feature/updcmeps
DeniseWorthen Nov 8, 2022
8763c77
fix unresolved merge conflict
DeniseWorthen Nov 8, 2022
02582eb
needed for using ESMF_AWARE_THREADING=TRUE
jedwards4b Nov 16, 2022
0cf254c
code clean up suggested in review
jedwards4b Nov 17, 2022
ce1305c
Merge pull request #319 from jedwards4b/esmf_aware_threading_fix
jedwards4b Nov 17, 2022
ef76dd1
make fldList a singly linked list
jedwards4b Nov 19, 2022
cc86157
one the way to fully functional linked list implementation
jedwards4b Nov 19, 2022
fbb8ef5
save work
jedwards4b Nov 19, 2022
69f31b8
compiles now
jedwards4b Nov 20, 2022
9d01b7b
save warnings in log
jedwards4b Nov 20, 2022
2dc1597
debugging
jedwards4b Nov 20, 2022
d494fa5
now passing SMS_Ld3.f19_g17_rx1.A.cheyenne_intel
jedwards4b Nov 21, 2022
13020c7
some cleanup
jedwards4b Nov 21, 2022
662e171
more clean-up
jedwards4b Nov 21, 2022
40ba09b
more list translation
jedwards4b Nov 21, 2022
75650c9
more loop structure changes
jedwards4b Nov 22, 2022
5c653fc
fix a pointer bug
jedwards4b Nov 23, 2022
24aff18
fix findname
jedwards4b Nov 23, 2022
70877f7
Merge remote-tracking branch 'origin/emc/develop' into feature/updcmeps
DeniseWorthen Nov 27, 2022
220a011
Merge remote-tracking branch 'remotes/escomp/master' into feature/upd…
DeniseWorthen Nov 27, 2022
7c76290
Merge remote-tracking branch 'JEdwards/LL_fldList' into feature/updcmeps
DeniseWorthen Nov 27, 2022
c6a597f
fix wave elevation spectrum for UFS
DeniseWorthen Nov 27, 2022
c33b88a
add a bit more debug info
jedwards4b Nov 28, 2022
d9f141b
add a bit more debug info
jedwards4b Nov 28, 2022
b4c68eb
a fix to get the num field count correct
jedwards4b Nov 28, 2022
736bce6
Merge remote-tracking branch 'ESCOMP/LL_fldList' into feature/updcmeps
DeniseWorthen Nov 28, 2022
628b134
add protection
jedwards4b Nov 28, 2022
b5d91b8
Merge remote-tracking branch 'ESCOMP/LL_fldList' into feature/updcmeps
DeniseWorthen Nov 28, 2022
eb78801
response to git review
jedwards4b Nov 29, 2022
15e746b
fix typos
jedwards4b Nov 29, 2022
841258a
more name changes
jedwards4b Nov 29, 2022
b8c29e6
add an abort call
jedwards4b Nov 30, 2022
ae5cfcd
Merge pull request #322 from jedwards4b/LL_fldList
jedwards4b Nov 30, 2022
4abc4b3
Merge remote-tracking branch 'escomp/master' into feature/updcmeps
DeniseWorthen Dec 1, 2022
57b6c0e
fix compile error
DeniseWorthen Dec 1, 2022
28199a1
fix mapping for ocn-wav
DeniseWorthen Dec 1, 2022
91749fd
Merge pull request #324 from DeniseWorthen/feature/updcmeps
jedwards4b Dec 5, 2022
85c2b66
switch to using ungridded dim for stokes drift
DeniseWorthen Dec 6, 2022
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
5 changes: 3 additions & 2 deletions cesm/driver/util.F90
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ module util
! CustomFieldDictionaryProto utility module
!-----------------------------------------------------------------------------

use ESMF
use NUOPC
use ESMF, only : ESMF_SUCCESS, ESMF_MAXSTR, ESMF_IOFmt_flag, ESMF_LogWrite
use ESMF, only : ESMF_LOGMSG_INFO, ESMF_LOGERR_PASSTHRU, ESMF_LOGFoundError
use NUOPC, only : nuopc_freeFormat, nuopc_freeformatLog, nuopc_fieldDictionaryEgest

implicit none

Expand Down
135 changes: 69 additions & 66 deletions cesm/nuopc_cap_share/driver_pio_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -212,86 +212,89 @@ subroutine driver_pio_component_init(driver, ncomps, rc)
if (ESMF_GridCompIsPetLocal(gcomp(i), rc=rc)) then
call ESMF_GridCompGet(gcomp(i), vm=vm, name=cval, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return

io_compname(i) = trim(cval)

call NUOPC_CompAttributeAdd(gcomp(i), attrList=(/'MCTID'/), rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return

write(cval, *) io_compid(i)
call NUOPC_CompAttributeSet(gcomp(i), name="MCTID", value=trim(cval), rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return

call ESMF_VMGet(vm, mpiCommunicator=comp_comm, localPet=comp_rank, petCount=npets, &
ssiLocalPetCount=default_stride, rc=rc)
call ESMF_VMGet(vm, mpiCommunicator=comp_comm, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return

call NUOPC_CompAttributeGet(gcomp(i), name="pio_stride", value=cval, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return
read(cval, *) pio_comp_settings(i)%pio_stride
if(pio_comp_settings(i)%pio_stride <= 0 .or. pio_comp_settings(i)%pio_stride > npets) then
pio_comp_settings(i)%pio_stride = min(npets, default_stride)
endif

call NUOPC_CompAttributeGet(gcomp(i), name="pio_rearranger", value=cval, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return
read(cval, *) pio_comp_settings(i)%pio_rearranger

call NUOPC_CompAttributeGet(gcomp(i), name="pio_numiotasks", value=cval, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return
read(cval, *) pio_comp_settings(i)%pio_numiotasks

if(pio_comp_settings(i)%pio_numiotasks < 0 .or. pio_comp_settings(i)%pio_numiotasks > npets) then
pio_comp_settings(i)%pio_numiotasks = max(1,npets/pio_comp_settings(i)%pio_stride)
endif


call NUOPC_CompAttributeGet(gcomp(i), name="pio_root", value=cval, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return
read(cval, *) pio_comp_settings(i)%pio_root

if(pio_comp_settings(i)%pio_root < 0 .or. pio_comp_settings(i)%pio_root > npets) then
pio_comp_settings(i)%pio_root = 0
endif

if(comp_comm .ne. MPI_COMM_NULL) then
call ESMF_VMGet(vm, petCount=npets, localPet=comp_rank, ssiLocalPetCount=default_stride, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return

call NUOPC_CompAttributeGet(gcomp(i), name="pio_typename", value=cval, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return

select case (trim(cval))
case ('pnetcdf')
pio_comp_settings(i)%pio_iotype = PIO_IOTYPE_PNETCDF
case ('netcdf')
pio_comp_settings(i)%pio_iotype = PIO_IOTYPE_NETCDF
case ('netcdf4p')
pio_comp_settings(i)%pio_iotype = PIO_IOTYPE_NETCDF4P
case ('netcdf4c')
pio_comp_settings(i)%pio_iotype = PIO_IOTYPE_NETCDF4C
case DEFAULT
write (msgstr, *) "Invalid PIO_TYPENAME Setting for component ", trim(cval)
call ESMF_LogSetError(ESMF_RC_NOT_VALID, msg=msgstr, line=__LINE__, file=__FILE__, rcToReturn=rc)
return
end select
call NUOPC_CompAttributeGet(gcomp(i), name="pio_stride", value=cval, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return
read(cval, *) pio_comp_settings(i)%pio_stride
if(pio_comp_settings(i)%pio_stride <= 0 .or. pio_comp_settings(i)%pio_stride > npets) then
pio_comp_settings(i)%pio_stride = min(npets, default_stride)
endif

call NUOPC_CompAttributeGet(gcomp(i), name="pio_async_interface", value=cval, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return
pio_async_interface(i) = (trim(cval) == '.true.')

call NUOPC_CompAttributeGet(gcomp(i), name="pio_netcdf_format", value=cval, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return
call driver_pio_getioformatfromname(cval, pio_comp_settings(i)%pio_netcdf_ioformat, PIO_64BIT_DATA)
call NUOPC_CompAttributeGet(gcomp(i), name="pio_rearranger", value=cval, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return
read(cval, *) pio_comp_settings(i)%pio_rearranger
call NUOPC_CompAttributeGet(gcomp(i), name="pio_numiotasks", value=cval, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return
read(cval, *) pio_comp_settings(i)%pio_numiotasks

if (pio_async_interface(i)) then
do_async_init = do_async_init + 1
else
if(pio_rearr_opts%comm_fc_opts_io2comp%max_pend_req < PIO_REARR_COMM_UNLIMITED_PEND_REQ) then
pio_rearr_opts%comm_fc_opts_io2comp%max_pend_req = pio_comp_settings(i)%pio_numiotasks
if(pio_comp_settings(i)%pio_numiotasks < 0 .or. pio_comp_settings(i)%pio_numiotasks > npets) then
pio_comp_settings(i)%pio_numiotasks = max(1,npets/pio_comp_settings(i)%pio_stride)
endif
if(pio_rearr_opts%comm_fc_opts_comp2io%max_pend_req < PIO_REARR_COMM_UNLIMITED_PEND_REQ) then
pio_rearr_opts%comm_fc_opts_comp2io%max_pend_req = pio_comp_settings(i)%pio_numiotasks

call NUOPC_CompAttributeGet(gcomp(i), name="pio_root", value=cval, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return
read(cval, *) pio_comp_settings(i)%pio_root

if(pio_comp_settings(i)%pio_root < 0 .or. pio_comp_settings(i)%pio_root > npets) then
pio_comp_settings(i)%pio_root = 0
endif

call NUOPC_CompAttributeGet(gcomp(i), name="pio_typename", value=cval, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return

select case (trim(cval))
case ('pnetcdf')
pio_comp_settings(i)%pio_iotype = PIO_IOTYPE_PNETCDF
case ('netcdf')
pio_comp_settings(i)%pio_iotype = PIO_IOTYPE_NETCDF
case ('netcdf4p')
pio_comp_settings(i)%pio_iotype = PIO_IOTYPE_NETCDF4P
case ('netcdf4c')
pio_comp_settings(i)%pio_iotype = PIO_IOTYPE_NETCDF4C
case DEFAULT
write (msgstr, *) "Invalid PIO_TYPENAME Setting for component ", trim(cval)
call ESMF_LogSetError(ESMF_RC_NOT_VALID, msg=msgstr, line=__LINE__, file=__FILE__, rcToReturn=rc)
return
end select

call NUOPC_CompAttributeGet(gcomp(i), name="pio_async_interface", value=cval, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return
pio_async_interface(i) = (trim(cval) == '.true.')

call NUOPC_CompAttributeGet(gcomp(i), name="pio_netcdf_format", value=cval, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return
call driver_pio_getioformatfromname(cval, pio_comp_settings(i)%pio_netcdf_ioformat, PIO_64BIT_DATA)

if (pio_async_interface(i)) then
do_async_init = do_async_init + 1
else
if(pio_rearr_opts%comm_fc_opts_io2comp%max_pend_req < PIO_REARR_COMM_UNLIMITED_PEND_REQ) then
pio_rearr_opts%comm_fc_opts_io2comp%max_pend_req = pio_comp_settings(i)%pio_numiotasks
endif
if(pio_rearr_opts%comm_fc_opts_comp2io%max_pend_req < PIO_REARR_COMM_UNLIMITED_PEND_REQ) then
pio_rearr_opts%comm_fc_opts_comp2io%max_pend_req = pio_comp_settings(i)%pio_numiotasks
endif
call pio_init(comp_rank ,comp_comm ,pio_comp_settings(i)%pio_numiotasks, 0, pio_comp_settings(i)%pio_stride, &
pio_comp_settings(i)%pio_rearranger, iosystems(i), pio_comp_settings(i)%pio_root, &
pio_rearr_opts)
endif
call pio_init(comp_rank ,comp_comm ,pio_comp_settings(i)%pio_numiotasks, 0, pio_comp_settings(i)%pio_stride, &
pio_comp_settings(i)%pio_rearranger, iosystems(i), pio_comp_settings(i)%pio_root, &
pio_rearr_opts)
endif
endif
enddo
Expand Down
5 changes: 2 additions & 3 deletions cesm/nuopc_cap_share/nuopc_shr_methods.F90
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@ subroutine set_component_logging(gcomp, mastertask, logunit, shrlogunit, rc)

rc = ESMF_SUCCESS

shrlogunit = 6

if (mastertask) then
call NUOPC_CompAttributeGet(gcomp, name="diro", value=diro, rc=rc)
if (chkerr(rc,__LINE__,u_FILE_u)) return
Expand All @@ -170,7 +168,8 @@ subroutine set_component_logging(gcomp, mastertask, logunit, shrlogunit, rc)
else
logUnit = 6
endif
! TODO: shr_file mod is deprecated and should be removed.
shrlogunit = logunit

call shr_file_setLogUnit (logunit)

end subroutine set_component_logging
Expand Down
2 changes: 2 additions & 0 deletions cime_config/buildexe
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ def _main_func():

rc, out, err = run_cmd(cmd,from_dir=bld_root)
expect(rc==0,"Command {} failed rc={}\nout={}\nerr={}".format(cmd,rc,out,err))
if err:
logger.info(err)
logger.info(out)

###############################################################################
Expand Down
Loading