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

Set a default value for esmf_logging #1300

Merged
merged 1 commit into from
Apr 3, 2017
Merged
Changes from all commits
Commits
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: 1 addition & 8 deletions src/drivers/mct/shr/seq_comm_mct.F90
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ subroutine seq_comm_init(Comm_in, nmlfile)
cpl_pestride = 1
cpl_nthreads = 1

esmf_logging = 'unset'
esmf_logging = "ESMF_LOGKIND_NONE"

! Read namelist if it exists

Expand Down Expand Up @@ -900,13 +900,6 @@ subroutine seq_comm_init(Comm_in, nmlfile)
deallocate(comps,comms)

! ESMF logging (only has effect if ESMF libraries are used)
if (mype == 0) then
if (esmf_logging == 'unset') then
write(logunit,*) trim(subname),' ERROR: esmf_logging not set'
call shr_sys_abort(trim(subname)//' ERROR: esmf_logging not set')
endif
endif

call mpi_bcast(esmf_logging, len(esmf_logging), MPI_CHARACTER, 0, GLOBAL_COMM, ierr)

select case(esmf_logging)
Expand Down