Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
MODULE sao_intp
!!======================================================================
!! *** MODULE sao_intp ***
!! ** Purpose : Run NEMO observation operator in offline mode
!!======================================================================
!! History : 3.6 ! 2015-12 (A. Ryan) Original code
!!----------------------------------------------------------------------
! ! NEMO modules
USE in_out_manager
USE diaobs
! ! Stand Alone Observation operator modules
USE sao_read
USE sao_data
IMPLICIT NONE
PRIVATE
PUBLIC sao_interp
!!----------------------------------------------------------------------
!! NEMO/OCE 4.0 , NEMO Consortium (2018)
!! $Id: sao_intp.F90 10069 2018-08-28 14:12:24Z nicolasmartin $
!! Software governed by the CeCILL license (see ./LICENSE)
!!----------------------------------------------------------------------
CONTAINS
SUBROUTINE sao_interp
!!----------------------------------------------------------------------
!! *** SUBROUTINE sao_interp ***
!!
!! ** Purpose : To interpolate the model as if it were running online.
!!
!! ** Method : 1. Populate model counterparts
!! 2. Call dia_obs at appropriate time steps
!!----------------------------------------------------------------------
INTEGER :: istp ! time step index
INTEGER :: ifile ! file index
!!----------------------------------------------------------------------
istp = nit000 - 1
nstop = 0
ifile = 1
CALL sao_rea_dri(ifile)
!
DO WHILE ( istp <= nitend .AND. nstop == 0 )
IF (ifile <= n_files + 1) THEN
IF ( MOD(istp, nn_sao_freq) == nit000 ) THEN
CALL sao_rea_dri(ifile)
ifile = ifile + 1
ENDIF
CALL dia_obs(istp)
ENDIF
istp = istp + 1
END DO
!
END SUBROUTINE sao_interp
!!======================================================================
END MODULE sao_intp