Skip to content

Commit

Permalink
Merge branch 'NOAA-EMC:develop' into feature/gsi_debug_omp
Browse files Browse the repository at this point in the history
  • Loading branch information
TingLei-daprediction authored Mar 20, 2024
2 parents 953d576 + 4e8107c commit ca495b6
Show file tree
Hide file tree
Showing 4 changed files with 495 additions and 37 deletions.
2 changes: 1 addition & 1 deletion modulefiles/gsi_hera.intel.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
help([[
]])

prepend_path("MODULEPATH", "/scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.6.0/envs/gsi-addon-dev/install/modulefiles/Core")
prepend_path("MODULEPATH", "/scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.6.0/envs/gsi-addon-dev-rocky8/install/modulefiles/Core")

local python_ver=os.getenv("python_ver") or "3.11.6"
local stack_intel_ver=os.getenv("stack_intel_ver") or "2021.5.0"
Expand Down
16 changes: 10 additions & 6 deletions src/enkf/controlvec.f90
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ subroutine read_control()
! read ensemble members on IO tasks
implicit none
real(r_double) :: t1,t2
integer(i_kind) :: nb,ne
integer(i_kind) :: nb,nlev,ne
integer(i_kind) :: q_ind
integer(i_kind) :: ierr

Expand All @@ -218,19 +218,23 @@ subroutine read_control()
if (nproc == 0) t1 = mpi_wtime()
call readgriddata_pnc(cvars3d,cvars2d,nc3d,nc2d,clevels,ncdim,nbackgrounds, &
fgfileprefixes,fgsfcfileprefixes,reducedgrid,grdin,qsat)
if (nproc == 0) then
t2 = mpi_wtime()
print *,'time in readgrid_pnc on root',t2-t1,'secs'
end if
end if
if (nproc <= ntasks_io-1) then
if (.not. paranc) then
if (nproc == 0) t1 = mpi_wtime()
call readgriddata(nanal1(nproc),nanal2(nproc),cvars3d,cvars2d,nc3d,nc2d,clevels,ncdim,nbackgrounds, &
fgfileprefixes,fgsfcfileprefixes,reducedgrid,grdin,qsat)
if (nproc == 0) then
t2 = mpi_wtime()
print *,'time in readgrid on root',t2-t1,'secs'
end if
end if
!print *,'min/max qsat',nanal,'=',minval(qsat),maxval(qsat)
q_ind = getindex(cvars3d, 'q')
if (nproc == 0) then
t2 = mpi_wtime()
print *,'time in readgridata on root',t2-t1,'secs'
end if
if (pseudo_rh .and. q_ind > 0) then
do ne=1,nanals_per_iotask
do nb=1,nbackgrounds
Expand Down Expand Up @@ -357,7 +361,7 @@ subroutine write_control(no_inflate_flag)
endif
deallocate(grdin_mean)
t2 = mpi_wtime()
print *,'time in write_control on root',t2-t1,'secs'
print *,'time in write_control paranc on root',t2-t1,'secs'
endif
end if

Expand Down
Loading

0 comments on commit ca495b6

Please sign in to comment.