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 8644 for branches/2017/dev_r8600_xios_write/NEMOGCM/NEMO/OPA_SRC/DYN/dynspg_ts.F90 – NEMO

Ignore:
Timestamp:
2017-10-20T10:04:07+02:00 (7 years ago)
Author:
andmirek
Message:

ticket #1962 xios write functionality works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_r8600_xios_write/NEMOGCM/NEMO/OPA_SRC/DYN/dynspg_ts.F90

    r8630 r8644  
    138138      INTEGER, INTENT(in)  ::   kt   ! ocean time-step index 
    139139      ! 
    140       LOGICAL  ::   ll_fw_start        ! if true, forward integration  
    141       LOGICAL  ::   ll_init             ! if true, special startup of 2d equations 
     140      LOGICAL  ::   ll_fw_start                 ! if true, forward integration  
     141      LOGICAL  ::   ll_init                     ! if true, special startup of 2d equations 
    142142      LOGICAL  ::   ll_tmp1, ll_tmp2            ! local logical variables used in W/D 
    143       INTEGER  ::   ji, jj, jk, jn        ! dummy loop indices 
    144       INTEGER  ::   ikbu, ikbv, noffset      ! local integers 
    145       INTEGER  ::   iktu, iktv               ! local integers 
     143      INTEGER  ::   ji, jj, jk, jn              ! dummy loop indices 
     144      INTEGER  ::   ikbu, ikbv, noffset         ! local integers 
     145      INTEGER  ::   iktu, iktv                  ! local integers 
    146146      REAL(wp) ::   zmdi 
    147       REAL(wp) ::   zraur, z1_2dt_b, z2dt_bf    ! local scalars 
     147      REAL(wp) ::   zraur, z1_2dt_b, z2dt_bf    ! local scalars 
    148148      REAL(wp) ::   zx1, zy1, zx2, zy2          !   -      - 
    149       REAL(wp) ::   z1_12, z1_8, z1_4, z1_2  !   -      - 
     149      REAL(wp) ::   z1_12, z1_8, z1_4, z1_2     !   -      - 
    150150      REAL(wp) ::   zu_spg, zv_spg              !   -      - 
    151       REAL(wp) ::   zhura, zhvra          !   -      - 
    152       REAL(wp) ::   za0, za1, za2, za3    !   -      - 
     151      REAL(wp) ::   zhura, zhvra                !   -      - 
     152      REAL(wp) ::   za0, za1, za2, za3          !   -      - 
    153153      ! 
    154154      REAL(wp), POINTER, DIMENSION(:,:) :: zsshp2_e 
     
    192192      ENDIF 
    193193      ! 
    194       IF( kt == nit000 ) THEN                !* initialisation 
     194      IF( kt == nit000 ) THEN                       !* initialisation 
    195195         ! 
    196196         IF(lwp) WRITE(numout,*) 
     
    13251325      CALL wrk_dealloc( jpi,jpj,   zcu ) 
    13261326      ! 
     1327      IF( lwxios ) THEN 
     1328! define variables in restart file when writing with XIOS 
     1329         CALL set_rstw_var_active('ub2_b') 
     1330         CALL set_rstw_var_active('vb2_b') 
     1331         ! 
     1332         IF (.NOT.ln_bt_av) THEN 
     1333            CALL set_rstw_var_active('sshbb_e') 
     1334            CALL set_rstw_var_active('ubb_e') 
     1335            CALL set_rstw_var_active('vbb_e') 
     1336            CALL set_rstw_var_active('sshb_e') 
     1337            CALL set_rstw_var_active('ub_e') 
     1338            CALL set_rstw_var_active('vb_e') 
     1339         ENDIF 
     1340#if defined key_agrif 
     1341         ! Save time integrated fluxes 
     1342         IF ( .NOT.Agrif_Root() ) THEN 
     1343            CALL set_rstw_var_active('ub2_i_b') 
     1344            CALL set_rstw_var_active('vb2_i_b') 
     1345         ENDIF 
     1346#endif 
     1347      ENDIF 
     1348 
    13271349   END SUBROUTINE dyn_spg_ts_init 
    13281350 
Note: See TracChangeset for help on using the changeset viewer.