Skip to content

Commit

Permalink
clean up this file
Browse files Browse the repository at this point in the history
  • Loading branch information
weiwangncar committed Jan 7, 2025
1 parent 9e8314e commit 033e905
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions var/da/da_main/da_write_anaincrements.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
subroutine da_write_anaincrements(grid, config_flags)
subroutine da_write_anaincrements(grid, config_flags)

use module_domain, only : get_ijk_from_grid, program_name
use da_control, only : use_radarobs, use_rad, crtm_cloud, &
Expand Down Expand Up @@ -31,9 +31,9 @@ subroutine da_write_anaincrements(grid, config_flags)
character(len=120) :: file_name,filnam
character(len=19) :: DateStr1
character(len=4) :: staggering=' N/A'
character(len=3) :: ordering
character(len=3) :: ordering
character(len=80), dimension(3) :: dimnames
character(len=80) :: rmse_var
character(len=80) :: rmse_var
integer :: dh1,dh0
integer :: i,j,k
integer :: ndim1
Expand All @@ -45,7 +45,7 @@ subroutine da_write_anaincrements(grid, config_flags)
ims, ime, jms, jme, kms, kme, &
ips, ipe, jps, jpe, kps, kpe
integer, dimension(4) :: start_index, end_index1
real, dimension(:), allocatable :: globbuf
real, dimension(:), allocatable :: globbuf
real*4,allocatable :: field3(:,:,:),field2(:,:)
real*4,allocatable :: field3u(:,:,:),field3v(:,:,:),field3ph(:,:,:)
character(len=4) :: fgname
Expand All @@ -54,17 +54,13 @@ subroutine da_write_anaincrements(grid, config_flags)
real*4 :: gmt4
real :: qvf

filnam="ANALYSIS_INCREMENTS"
if(rootproc) print *,'in da_write_anaincrements...'
if ( grid%auxhist5_oid .NE. 0 ) then
call close_dataset ( grid%auxhist5_oid , config_flags , "DATASET=AUXHIST5" )
endif

! call open_w_dataset (grid%auxhist5_oid, trim(filnam), grid, config_flags, &
call open_w_dataset (grid%auxhist5_oid, trim(config_flags%auxhist5_outname), grid, config_flags, &
output_auxhist5, "DATASET=AUXHIST5", ierr)
if ( ierr .NE. 0 ) CALL wrf_error_fatal('Error opening '//trim(filnam))
if(rootproc) print *,'after open_w_dataset of AUXHIST5...'

start_date=current_date

Expand All @@ -74,7 +70,6 @@ if(rootproc) print *,'after open_w_dataset of AUXHIST5...'
config_flags%julday = julday

call output_auxhist5 (grid%auxhist5_oid, grid , config_flags , ierr)
if(rootproc) print*, 'after outpu_auxhist5...'
if ( ierr .NE. 0 ) CALL wrf_error_fatal('Error writing Gradient in auxhist5')
call close_dataset (grid%auxhist5_oid, config_flags, "DATASET=AUXHIST5")

Expand Down

0 comments on commit 033e905

Please sign in to comment.