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

chgres_cube - Call routine 'convert_omega' on all MPI tasks #627

Merged
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
5 changes: 4 additions & 1 deletion sorc/chgres_cube.fd/input_data.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2457,6 +2457,7 @@ end subroutine read_input_atm_tiled_history_file
!! @author George Gayno NCEP/EMC
subroutine read_input_atm_grib2_file(localpet)

use mpi
use wgrib2api

use grib2_util, only : rh2spfh, rh2spfh_gfs, convert_omega
Expand Down Expand Up @@ -2909,6 +2910,8 @@ subroutine read_input_atm_grib2_file(localpet)
enddo
endif

call mpi_bcast(conv_omega,1,MPI_LOGICAL,0,MPI_COMM_WORLD,rc)

if (localpet == 0) print*,"- CALL FieldScatter FOR INPUT DZDT."
call ESMF_FieldScatter(dzdt_input_grid, dummy3d, rootpet=0, rc=rc)
if(ESMF_logFoundError(rcToCheck=rc,msg=ESMF_LOGERR_PASSTHRU,line=__LINE__,file=__FILE__)) &
Expand Down Expand Up @@ -3081,7 +3084,7 @@ subroutine read_input_atm_grib2_file(localpet)
farrayPtr=presptr, rc=rc)
if(ESMF_logFoundError(rcToCheck=rc,msg=ESMF_LOGERR_PASSTHRU,line=__LINE__,file=__FILE__)) &
call error_handler("IN FieldGet", rc)

call convert_omega(wptr,presptr,tptr,qptr,clb,cub)

endif
Expand Down