42 integer,
parameter :: rk = kind(1.0d0)
44 real(kind=rk),
dimension(state_dim,pf%count) :: normaln
45 real(kind=rk),
dimension(state_dim,pf%count) :: betan
46 real(kind=rk),
dimension(state_dim,pf%count) :: fpsi
48 real(kind=rk),
dimension(state_dim,pf%count) :: Qkgain
51 real(kind=rk),
dimension(obs_dim) :: obsv,obsvv,y
57 call
qhalf(pf%count,normaln,betan)
64 particle = pf%particles(k)
65 call
update_state(pf%psi(:,k),fpsi(:,k),qkgain(:,k),betan(:,k))
70 if(pf%gen_data .and. tsdata%do_analysis)
then
71 if(pf%count .ne. 1 .and. pf%nens .ne. 1)
then
72 write(emp_e,*)
'OBS GEN ERROR -558: PLEASE RUN WITH ONLY A SINGLE &
77 write(emp_o,*)
'generating the data'
82 call
h(obs_dim,1,pf%psi,y,pf%timestep)
88 call
rhalf(obs_dim,1,obsv,obsvv,pf%timestep)
subroutine normalrandomnumbers2d(mean, stdev, n, k, phi)
generate two dimensional Normal random numbers
subroutine save_observation_data(y)
Subroutine to save observation to a file Uses pftimestep to determine which observation to save...
subroutine send_all_models(stateDim, nrhs, x, tag)
subroutine to send all the model states to the models
Module containing EMPIRE coupling data.
Module that stores the information about the outputting from empire.
subroutine stochastic_model
subroutine to simply move the model forward in time one timestep PAB 21-05-2013
Module that stores the information about the timestepping process.
subroutine update_state(state, fpsi, kgain, betan)
Subroutine to update the state.
subroutine recv_all_models(stateDim, nrhs, x)
subroutine to receive all the model states from the models after
Module that stores the dimension of observation and state spaces.
subroutine diagnostics
Subroutine to give output diagnositics such as rank histograms.
subroutine normalrandomnumbers1d(mean, stdev, n, phi)
generate one dimension of Normal random numbers
subroutine h(obsDim, nrhs, x, hx, t)
subroutine to take a full state vector x and return H(x) in observation space.
subroutine rhalf(obsDim, nrhs, y, Ry, t)
subroutine to take an observation vector x and return Rx in observation space.
module pf_control holds all the information to control the the main program
subroutine qhalf(nrhs, x, Qx)
subroutine to take a full state vector x and return in state space.