MONC
iodriver.F90
Go to the documentation of this file.
1 
3 program iodriver
5  implicit none
6 
7  character(len=1000) :: xml, temp_line
8  type(io_configuration_type) :: parsed_configuration
9  integer :: k
10 
11  xml=""
12  k=0
13  open (unit = 2, file = "description.xml")
14  do while (k == 0)
15  read(2,"(A)",iostat=k) temp_line
16  if (k == 0) then
17  xml=trim(xml)//trim(temp_line)//new_line("A")
18  end if
19  end do
20  close(2)
21 
22  call configuration_parse(trim(xml), parsed_configuration)
23 
24  write(*,*) "Data fields", parsed_configuration%number_of_data_field, "Handling rules", parsed_configuration%number_of_rules
25  do k=1,parsed_configuration%number_of_data_field
26  write(*,*) "Field",k,parsed_configuration%fields(k)%name
27  end do
28  do k=1, parsed_configuration%number_of_rules
29  write(*,*) "Rule ",k,parsed_configuration%rules(k)%name, "triggers",parsed_configuration%rules(k)%number_of_triggers, &
30  "actions", parsed_configuration%rules(k)%number_of_actions
31  end do
32 end program iodriver
program iodriver
Entry point for the IO server when run as a separate executable. This is currently used as a driver f...
Definition: iodriver.F90:3
subroutine, public configuration_parse(provided_options_database, raw_configuration, parsed_configuration)
This will parse an XML string into the IO configuration.
Parses the XML configuration file to produce the io configuration description which contains the data...