EMPIRE DA  v1.9.1
Data assimilation codes using EMPIRE communication
 All Classes Files Functions Variables Pages
output_forecast.f90
Go to the documentation of this file.
1 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2 !!! Time-stamp: <2016-10-17 12:00:23 pbrowne>
3 !!!
4 !!! Subroutine to output RMSE
5 !!! Copyright (C) 2015 Philip A. Browne
6 !!!
7 !!! This program is free software: you can redistribute it and/or modify
8 !!! it under the terms of the GNU General Public License as published by
9 !!! the Free Software Foundation, either version 3 of the License, or
10 !!! (at your option) any later version.
11 !!!
12 !!! This program is distributed in the hope that it will be useful,
13 !!! but WITHOUT ANY WARRANTY; without even the implied warranty of
14 !!! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 !!! GNU General Public License for more details.
16 !!!
17 !!! You should have received a copy of the GNU General Public License
18 !!! along with this program. If not, see <http://www.gnu.org/licenses/>.
19 !!!
20 !!! Email: p.browne @ reading.ac.uk
21 !!! Mail: School of Mathematical and Physical Sciences,
22 !!! University of Reading,
23 !!! Reading, UK
24 !!! RG6 6BB
25 !!!
26 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29 subroutine output_forecast
30 
31  use pf_control
32  use timestep_data
33  implicit none
34 
35  character(256) :: filename
36  integer :: i,particle
37 
38  do i = 1,pf%count
39  particle = pf%particles(i)
40  write(filename,'(A,I0,A,I0)') trim(pf%forecast_path),pf%timestep,'_'&
41  &,particle
42  call save_state(pf%psi(:,i),filename)
43  end do
44 
45 
46 end subroutine output_forecast
Module that stores the information about the timestepping process.
module pf_control holds all the information to control the the main program
Definition: pf_control.f90:29
subroutine save_state(state, filename)
subroutine to save the state vector to a named file as an unformatted fortran file ...
Definition: data_io.f90:231
subroutine output_forecast
subroutine to output forecast ensemble to forecast_path