33 use comms, only : pfrank,nens,npfs
35 real(kind=kind(1.0d0)),
dimension(state_dim),
intent(out) :: x
36 integer,
intent(in) :: particle
39 if(.not. initialised)
then
41 first_ptcl = ceiling(
real(pfrank)*
real(nens)/
real(npfs))
42 final_ptcl = ceiling(
real(pfrank+1)*
real(nens)/
real(npfs))-1
43 print*,
'first_ptcl = ',first_ptcl
44 print*,
'final_ptcl = ',final_ptcl
45 allocate(model_states(state_dim,first_ptcl:final_ptcl))
46 do i = first_ptcl,final_ptcl
52 x = model_states(:,particle)
a module that can be used to store the data for when the model is a subroutine of empire...
Module containing EMPIRE coupling data.
Module that stores the dimension of observation and state spaces.
subroutine model_as_subroutine_initialise(x, particle)
subroutine to initialise an ensemble member when the model is a suboutine of EMPIRE, i.e. when using comms_version = 4
subroutine model_as_subroutine_return(x, particle)
subroutine to initialise and return the state from the model