New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
sao_intp.F90 in branches/2014/dev_r4650_UKMO14.12_STAND_ALONE_OBSOPER/NEMOGCM/NEMO/SAO_SRC – NEMO

source: branches/2014/dev_r4650_UKMO14.12_STAND_ALONE_OBSOPER/NEMOGCM/NEMO/SAO_SRC/sao_intp.F90 @ 5042

Last change on this file since 5042 was 4852, checked in by andrewryan, 10 years ago

changed loop to account for step before nit000, although no model reads take place for this step it is needed by dia_obs

File size: 1.6 KB
RevLine 
[4847]1MODULE 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         !!----------------------------------------------------------------------
29         INTEGER :: istp ! time step index
[4048]30         !! Loop over entire run
[4852]31         istp = nit000 - 1
[4030]32         nstop = 0
33         DO WHILE ( istp <= nitend .AND. nstop == 0 )
[4048]34            IF (jifile <= n_files + 1) THEN
[4846]35               IF ( MOD(istp, nn_sao_freq) == nit000 ) THEN
[4048]36                  !! Read next model counterpart
[4848]37                  CALL sao_rea_dri(jifile)
[4048]38                  jifile = jifile + 1
39               ENDIF
40               !! Interpolate single time step
41               CALL dia_obs(istp)
42            ENDIF
43            !! Increment model step
[4030]44            istp = istp + 1
45         END DO
[4847]46      END SUBROUTINE sao_interp
[4030]47
[4847]48END MODULE sao_intp
Note: See TracBrowser for help on using the repository browser.