EMPIRE DA
v1.9.1
Data assimilation codes using EMPIRE communication
Main Page
Related Pages
Data Types List
Files
Assimilation Methods
Other features
How to cite EMPIRE
Tutorials
File List
File Members
All
Classes
Files
Functions
Variables
Pages
update_state.f90
Go to the documentation of this file.
1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2
!!! Time-stamp: <2015-05-13 12:01:23 pbrowne>
3
!!!
4
!!! Routines to update states
5
!!! Copyright (C) 2014 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
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27
28
46
47
subroutine
update_state
(state,fpsi,kgain,betan)
48
use
sizes
49
implicit none
50
integer
,
parameter
:: rk=kind(1.0d0)
51
real(kind=rk)
,
dimension(state_dim)
,
intent(out)
:: state
52
real(kind=rk)
,
dimension(state_dim)
,
intent(in)
:: fpsi,kgain
53
real(kind=rk)
,
dimension(state_dim)
,
intent(inout)
:: betan
54
real(kind=rk)
:: dnrm2
55
logical
,
parameter
:: norms=.false.
56
57
58
59
!do the addition
60
state = fpsi+kgain+betan
61
62
if
(norms) print*,
' |kgain|= '
,dnrm2(state_dim,kgain,1),
' |betan| = '
,dnrm2(state_dim,betan,1)
63
64
65
end subroutine
update_state
update_state
subroutine update_state(state, fpsi, kgain, betan)
Subroutine to update the state.
Definition:
update_state.f90:47
sizes
Module that stores the dimension of observation and state spaces.
Definition:
sizes.f90:29
src
operations
update_state.f90
Generated on Tue Dec 13 2016 18:44:26 for EMPIRE DA by
1.8.8