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.
Changeset 5034 for branches/2014/dev_r4650_UKMO14.12_STAND_ALONE_OBSOPER/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90 – NEMO

Ignore:
Timestamp:
2015-01-15T14:48:42+01:00 (9 years ago)
Author:
andrewryan
Message:

merge with trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_r4650_UKMO14.12_STAND_ALONE_OBSOPER/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90

    r4334 r5034  
    2222   USE iom             ! I/O module 
    2323   USE eosbn2          ! equation of state            (eos bn2 routine) 
    24    USE trdmld_oce      ! ocean active mixed layer tracers trends variables 
     24   USE trdmxl_oce      ! ocean active mixed layer tracers trends variables 
    2525   USE divcur          ! hor. divergence and curl      (div & cur routines) 
    2626   USE sbc_ice, ONLY : lk_lim3 
     
    120120                     CALL iom_rstput( kt, nitrst, numrow, 'hdivb'  , hdivb     ) 
    121121                     CALL iom_rstput( kt, nitrst, numrow, 'sshb'   , sshb      ) 
     122                     ! 
     123      IF( lk_lim3 )  CALL iom_rstput( kt, nitrst, numrow, 'fse3t_b', fse3t_b(:,:,:) ) 
    122124                     ! 
    123125                     CALL iom_rstput( kt, nitrst, numrow, 'un'     , un        )     ! now fields 
     
    133135#endif 
    134136                  IF( lk_lim3 ) THEN 
    135                      CALL iom_rstput( kt, nitrst, numrow, 'iatte'  , iatte     ) !clem modif 
    136                      CALL iom_rstput( kt, nitrst, numrow, 'oatte'  , oatte     ) !clem modif 
     137                     CALL iom_rstput( kt, nitrst, numrow, 'fraqsr_1lev'  , fraqsr_1lev     ) !clem modif 
    137138                  ENDIF 
    138139      IF( kt == nitrst ) THEN 
    139140         CALL iom_close( numrow )     ! close the restart file (only at last time step) 
    140          IF( .NOT. lk_trdmld )   lrst_oce = .FALSE. 
     141!!gm         IF( .NOT. lk_trdmld )   lrst_oce = .FALSE. 
     142!!gm  not sure what to do here   ===>>>  ask to Sebastian 
     143         lrst_oce = .FALSE. 
    141144      ENDIF 
    142145      ! 
    143146   END SUBROUTINE rst_write 
     147 
    144148 
    145149   SUBROUTINE rst_read_open 
     
    155159      LOGICAL  ::   llok 
    156160      !!---------------------------------------------------------------------- 
    157  
    158       IF( numror .LE. 0 ) THEN 
     161      ! 
     162      IF( numror <= 0 ) THEN 
    159163         IF(lwp) THEN                                             ! Contol prints 
    160164            WRITE(numout,*) 
     
    210214         CALL iom_get( numror, jpdom_autoglo, 'hdivb'  , hdivb   ) 
    211215         CALL iom_get( numror, jpdom_autoglo, 'sshb'   , sshb    ) 
     216         IF( lk_lim3 )   CALL iom_get( numror, jpdom_autoglo, 'fse3t_b', fse3t_b(:,:,:) ) 
    212217      ELSE 
    213218         neuler = 0 
     
    245250         hdivb(:,:,:)   = hdivn(:,:,:) 
    246251         sshb (:,:)     = sshn (:,:) 
    247       ENDIF 
    248       ! 
    249       IF( lk_lim3 ) THEN  
    250          CALL iom_get( numror, jpdom_autoglo, 'iatte' , iatte ) ! clem modif 
    251          CALL iom_get( numror, jpdom_autoglo, 'oatte' , oatte ) ! clem modif 
     252 
     253         IF( lk_vvl ) THEN 
     254            DO jk = 1, jpk 
     255               fse3t_b(:,:,jk) = fse3t_n(:,:,jk) 
     256            END DO 
     257         ENDIF 
     258 
     259         IF( lk_lim3 .AND. .NOT. lk_vvl ) THEN 
     260            DO jk = 1, jpk 
     261               fse3t_b(:,:,jk) = fse3t_n(:,:,jk) 
     262            END DO 
     263         ENDIF 
     264 
     265      ENDIF 
     266      ! 
     267      IF( lk_lim3 ) THEN 
     268         CALL iom_get( numror, jpdom_autoglo, 'fraqsr_1lev' , fraqsr_1lev ) 
    252269      ENDIF 
    253270      ! 
Note: See TracChangeset for help on using the changeset viewer.