Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DeniseWorthen committed Jul 31, 2023
1 parent 427ebeb commit 957a0fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion mediator/med_io_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1738,7 +1738,7 @@ subroutine med_io_read_init_iodesc(FB, name1, pioid, iodesc, rc)

deallocate(minIndexPTile, maxIndexPTile)
else
if(maintask) write(logunit,*) trim(subname),' ERROR: '//trim(name1)//' is not present, aborting '
if(maintask) write(logunit,'(a)') trim(subname)//' ERROR: '//trim(name1)//' is not present, aborting '
call ESMF_LogWrite(trim(subname)//' ERROR: '//trim(name1)//' is not present, aborting ', ESMF_LOGMSG_ERROR)
rc = ESMF_FAILURE
end if ! end if rcode check
Expand Down
9 changes: 2 additions & 7 deletions mediator/med_phases_ocnalb_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,7 @@ subroutine med_phases_ocnalb_run(gcomp, rc)

! Determine if ocnalb data type will be initialized - and if not return
if (first_call) then
if ((ESMF_FieldBundleIsCreated(is_local%wrap%FBMed_aoflux_a, rc=rc) .and. &
ESMF_FieldBundleIsCreated(is_local%wrap%FBMed_aoflux_o, rc=rc)) .or. &
ESMF_FieldBundleIsCreated(is_local%wrap%FBMed_ocnalb_o, rc=rc)) then
if (ESMF_FieldBundleIsCreated(is_local%wrap%FBMed_ocnalb_o, rc=rc)) then
ocnalb%created = .true.
else
ocnalb%created = .false.
Expand Down Expand Up @@ -495,10 +493,7 @@ subroutine med_phases_ocnalb_run(gcomp, rc)
ofrad(:) = ofrac(:)
endif

! Write mediator ocnalb history if aofluxes are not active
if ( ESMF_FieldBundleIsCreated(is_local%wrap%FBMed_ocnalb_o, rc=rc) .and. &
.not. ESMF_FieldBundleIsCreated(is_local%wrap%FBMed_aoflux_a, rc=rc) .and. &
.not. ESMF_FieldBundleIsCreated(is_local%wrap%FBMed_aoflux_o, rc=rc)) then
if (ESMF_FieldBundleIsCreated(is_local%wrap%FBMed_ocnalb_o, rc=rc)) then
call NUOPC_MediatorGet(gcomp, driverClock=dClock, rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
if (ESMF_ClockIsCreated(dclock)) then
Expand Down

0 comments on commit 957a0fb

Please sign in to comment.