1 ! This program tests the lfn_history api. It assumes a valid wrfinput_d01
2 ! file exists in the current path.
8 integer,parameter::idom=1
9 integer::nx,ny,i,mtime,sr_x,sr_y
10 real,allocatable,dimension(:,:)::tign
12 real,parameter::testvalue=11.5
14 call get_grid_info(idom,nx=nx,ny=ny,sr_x=sr_x,sr_y=sr_y,dx=dx,dy=dy,dt=dt)
19 call write_tign_history(idom,nx,ny,tign)
23 call read_tign_history(idom,nx,ny,tign)
25 if(any(tign(:,:).ne.testvalue))then
26 print*,'ERROR tign set incorrectly'
29 print*,'TEST SUCCESSFUL'