30 integer,
allocatable,
dimension(:) :: rank_hist_list
31 integer,
allocatable,
dimension(:) :: rank_hist_nums
32 integer :: rhl_n,rhn_n
79 integer :: counter,lowerbound,upperbound
80 integer,
allocatable,
dimension(:) :: tempvar
83 open(unit_hist_read,file=
'variables_hist.dat',action=
'read',status=
'old')
84 read(unit_hist_read,
'(i7.7)') rhn_n
85 allocate(rank_hist_nums(rhn_n))
87 read(unit_hist_read,
'(i7.7)') rank_hist_nums(i)
89 rhl_n = sum(rank_hist_nums)
90 allocate(rank_hist_list(rhl_n))
92 read(unit_hist_read,
'(i7.7)') rank_hist_list(i)
97 if(comm_version .eq. 3)
then
99 lowerbound = state_displacements(pf_member_rank+1)
100 if(pf_member_rank .eq. pf_member_size-1)
then
101 upperbound = state_dim_g
103 upperbound = state_displacements(pf_member_rank+2)
108 if(rank_hist_list(i) .gt. lowerbound .and. rank_hist_list(i) .le.&
110 counter = counter + 1
114 allocate(tempvar(rhl_n))
115 tempvar = rank_hist_list
116 deallocate(rank_hist_list)
117 allocate(rank_hist_list(counter))
121 if(tempvar(i) .gt. lowerbound .and. tempvar(i) .le.&
123 counter = counter + 1
124 rank_hist_list(counter) = tempvar(i)
129 rank_hist_list = rank_hist_list - lowerbound
136 if(
allocated(rank_hist_list))
deallocate(rank_hist_list)
137 if(
allocated(rank_hist_nums))
deallocate(rank_hist_nums)
Module containing EMPIRE coupling data.
Module that stores the information about the outputting from empire.
Module that stores the dimension of observation and state spaces.
Module to control what variables are used to generate rank histograms.
subroutine load_histogram_data
subroutine to read from variables_hist.dat which holds the variables to be used to make the rank hist...
subroutine kill_histogram_data
subroutine to clean up arrays used in rank histograms