source:
branches/2014/dev_r4650_UKMO14.12_STAND_ALONE_OBSOPER/NEMOGCM/NEMO/SAO_SRC/sao_intp.F90
@
7024
Last change on this file since 7024 was 5063, checked in by andrewryan, 9 years ago | |
---|---|
File size: 1.5 KB |
Rev | Line | |
---|---|---|
[4847] | 1 | MODULE sao_intp |
[4110] | 2 | !!====================================================================== |
[4847] | 3 | !! *** MODULE sao_intp *** |
[4030] | 4 | !! ** Purpose : Run NEMO observation operator in offline mode |
[4110] | 5 | !!====================================================================== |
[4030] | 6 | !! NEMO modules |
[4120] | 7 | USE in_out_manager |
[4030] | 8 | USE diaobs |
[4846] | 9 | !! Stand Alone Observation operator modules |
[4848] | 10 | USE sao_read |
[4849] | 11 | USE sao_data |
[4110] | 12 | |
13 | IMPLICIT NONE | |
14 | PRIVATE | |
15 | ||
[4847] | 16 | PUBLIC sao_interp |
[4110] | 17 | |
[4030] | 18 | CONTAINS |
19 | ||
[4847] | 20 | SUBROUTINE sao_interp |
[4030] | 21 | !!---------------------------------------------------------------------- |
[4847] | 22 | !! *** SUBROUTINE sao_interp *** |
[4030] | 23 | !! |
24 | !! ** Purpose : To interpolate the model as if it were running online. | |
25 | !! | |
[4048] | 26 | !! ** Method : 1. Populate model counterparts |
27 | !! 2. Call dia_obs at appropriate time steps | |
[4030] | 28 | !!---------------------------------------------------------------------- |
[5063] | 29 | INTEGER :: & |
30 | & istp, & ! time step index | |
31 | & ifile ! file index | |
[4852] | 32 | istp = nit000 - 1 |
[4030] | 33 | nstop = 0 |
[5063] | 34 | ifile = 1 |
35 | CALL sao_rea_dri(ifile) | |
[4030] | 36 | DO WHILE ( istp <= nitend .AND. nstop == 0 ) |
[5063] | 37 | IF (ifile <= n_files + 1) THEN |
[4846] | 38 | IF ( MOD(istp, nn_sao_freq) == nit000 ) THEN |
[5063] | 39 | CALL sao_rea_dri(ifile) |
40 | ifile = ifile + 1 | |
[4048] | 41 | ENDIF |
42 | CALL dia_obs(istp) | |
43 | ENDIF | |
[4030] | 44 | istp = istp + 1 |
45 | END DO | |
[4847] | 46 | END SUBROUTINE sao_interp |
[4030] | 47 | |
[4847] | 48 | END MODULE sao_intp |
Note: See TracBrowser
for help on using the repository browser.