cleanup
[wrf-fire-matlab.git] / femwind / fortran / netcdf_test.f90
blob547f4885491213ee57ac89010f369fd8f7d67a5f
1 program netcdf_test
3 use module_utils
4 use module_netcdf
5 use module_wrfout
7 !*** local
8 character(len=128)::filename
9 integer::ncid,frame
10 real, pointer, dimension(:,:,:)::u0_fmw,v0_fmw,w0_fmw
12 !*** executable
13 filename = "wrf.nc"
15 call ncopen(filename,nf90_nowrite,ncid)
17 do frame = 1,9999
19 if(read_initial_wind(ncid,u0_fmw,v0_fmw,w0_fmw,frame=frame).ne.0)then
20 print *,'check sum does not agree'
21 stop 1
22 endif
24 enddo
26 call ncclose(ncid)
28 end program netcdf_test