3 #include "wrf_io_flags.h"
6 character(len=80) :: SysDepInfo
7 character(len=80) :: FileName = 'test.gr2'
12 real, DIMENSION( 1:1, 1:4, 1:4, 1:4) :: Field
14 character(len=3) :: MemoryOrder = 'XZY'
15 character(len=3) :: Stagger = ''
16 character(len=100) :: DimNames = ''
17 integer, dimension(3) :: DomainStart, DomainEnd, MemoryStart, &
18 MemoryEnd, PatchStart, PatchEnd
41 call ext_gr1_ioinit(SysDepInfo,Status)
43 call ext_gr1_ioexit(Status)
45 call ext_gr1_open_for_write_begin(FileName, Comm, IOComm, SysDepInfo, &
48 call ext_gr1_open_for_write_commit( DataHandle , Status )
50 call ext_gr1_inquire_opened ( DataHandle, FileName , FileStat, Status )
53 call ext_gr1_write_field ( DataHandle, "2005-07-27_12:00:00","POT",Field, &
54 WRF_REAL, Comm, IOComm, DomainDesc, MemoryOrder, Stagger, &
55 DimNames, DomainStart, DomainEnd, MemoryStart, MemoryEnd, &
56 PatchStart, PatchEnd, Status)
59 call ext_gr1_ioclose ( DataHandle, Status )