@@ -586,6 +586,8 @@ SUBROUTINE read_aerdataf (mpicomm, mpirank, mpiroot, iflip, idate, FHOUR, errmsg
586586 integer , allocatable :: invardims(:)
587587!
588588 if (.not. allocated (aerin)) then
589+ ! GJF - put print statement in here to see what each MPI task does?
590+
589591 allocate (aerin(iamin:iamax,jamin:jamax,levsaer,ntrcaerm,timeaer))
590592 allocate (aer_pres(iamin:iamax,jamin:jamax,levsaer,timeaer))
591593 endif
@@ -1019,7 +1021,6 @@ subroutine read_netfaer(mpicomm, mpirank, mpiroot, nf, iflip, nt, errmsg, errflg
10191021 integer :: ierr
10201022
10211023! ! ===================================================================
1022- read_and_broadcast: if (mpirank== mpiroot) then
10231024 allocate (buff(lonsaer, latsaer, levsw))
10241025 allocate (pres_tmp(lonsaer, levsw))
10251026 allocate (buffx(lonsaer, latsaer, levsw, 1 ))
@@ -1111,10 +1112,7 @@ subroutine read_netfaer(mpicomm, mpirank, mpiroot, nf, iflip, nt, errmsg, errflg
11111112 endif
11121113 deallocate (buff, pres_tmp)
11131114 deallocate (buffx)
1114- endif read_and_broadcast
1115-
1116- call ccpp_bcast(aer_pres, mpiroot, mpicomm, ierr)
1117- call ccpp_bcast(aerin, mpiroot, mpicomm, ierr)
1115+
11181116 END SUBROUTINE read_netfaer
11191117
11201118end module aerinterp
0 commit comments