UPP  V11.0.0
 All Data Structures Files Functions Pages
READ_xml.f
Go to the documentation of this file.
1 
2 ! . . .
39  SUBROUTINE read_xml()
40 !
41 
42 !
43 !
44 ! INCLUDE ETA GRID DIMENSIONS. SET/DERIVE PARAMETERS.
45 !
46  use xml_perl_data,only: post_avblflds,paramset,read_postxconfig
47  use grib2_module, only: num_pset
48  use rqstfld_mod,only: num_post_afld,mxlvl,lvlsxml
49  use ctlblk_mod, only: me
50 !- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
51  implicit none
52 !
53 ! DECLARE VARIABLES.
54 !
55 !******************************************************************************
56 ! START READCNTRL_XML HERE.
57 !
58 ! READ post available field table
59  if (me==0) write(0,*)'in readxml,bf readxml,size(post_avblflds%param)=', &
60  size(post_avblflds%param)
61  call read_postxconfig()
62  num_post_afld=size(paramset(1)%param)
63  num_pset=size(paramset)
64  if (me==0) write(0,*)'in readxml, aft read flat file.xml,num_post_afld=', &
65  num_post_afld
66  if (me==0) write(0,*)'in readxml, aft read flat file.xml,num_pset=',num_pset
67 
68 
69 ! LinGan below line removed because now we only read one flat file
70 !
71 ! if(size(post_avblflds%param)==0) then
72 ! call read_xml_file_post_t( 'post_avblflds.xml')
73 ! num_post_afld=size(post_avblflds%param)
74 ! allocate(lvlsxml(MXLVL,num_post_afld))
75 ! write(0,*)'in readxml, aft read post_avblflds.xml,num_post_afld=',num_post_afld
76 ! endif
77 !
78 ! READ post cntrl file
79 ! write(0,*)'in readxml,bf readxml,size(paramset)=',size(paramset)
80 ! if(size(paramset)==0) then
81 ! call read_xml_file_post_t( 'postcntrl.xml')
82 ! num_pset=size(paramset)
83 ! write(0,*)'in readxml, aft read postcntrl.xml,num_pset=',num_pset
84 ! endif
85 !
86 
87  RETURN
88  end subroutine read_xml
89