34 use comms, only : comm_version,pf_ens_rank
36 integer,
parameter :: rk = kind(1.0d0)
37 real(kind=rk),
dimension(state_dim),
intent(in) :: mean
38 real(kind=rk),
dimension(state_dim) :: se
39 real(kind=rk),
dimension(state_dim) :: truth
40 real(kind=rk) :: mse,rmse
43 character(256) :: filename
48 mse = sum(se)/
real(state_dim)
51 if(pf%timestep .eq. 0)
then
53 select case(comm_version)
55 write(filename,
'(A)') trim(pf%rmse_filename)
57 write(filename,
'(A)') trim(pf%rmse_filename)
59 write(filename,
'(A,A,i0)') trim(pf%rmse_filename),
'.',pf_ens_rank
61 write(emp_e,*)
'ERROR in output_spatial_rmse: comm_version ',comm_version,
' &
63 write(emp_e,*)
'Stopping'
68 open(unit_spatial_rmse,file=trim(filename),iostat=ios,action=
'write',status=
'replace')
70 write(emp_e,*)
'PARTICLE FILTER DATA ERROR!!!!! Cannot open &
72 write(emp_e,*)
'Very strange that I couldnt open it. Im goin&
78 write(unit_spatial_rmse,
'(es24.16)') rmse
80 if(tsdata%completed_timesteps .eq. tsdata%total_timesteps)
close(unit_spatial_rmse)
Module containing EMPIRE coupling data.
Module that stores the information about the outputting from empire.
Module that stores the information about the timestepping process.
Module that stores the dimension of observation and state spaces.
subroutine get_truth(x)
Subroutine to read truth from the file written by save_truth .
module pf_control holds all the information to control the the main program
subroutine output_spatial_rmse(mean)
subroutine to output RMSEs