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 3865 for branches/2013/dev_r3858_NOC_ZTC/NEMOGCM/NEMO/OPA_SRC/DOM/domwri.F90 – NEMO

Ignore:
Timestamp:
2013-04-09T18:34:38+02:00 (11 years ago)
Author:
acc
Message:

Branch 2013/dev_r3858_NOC_ZTC, #863. Nearly complete port of 2011/dev_r2739_LOCEAN8_ZTC development branch into v3.5aplha base. Compiles and runs but currently unstable after 8 timesteps with ORCA2_LIM reference configuration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r3858_NOC_ZTC/NEMOGCM/NEMO/OPA_SRC/DOM/domwri.F90

    r3862 r3865  
    183183         CALL iom_rstput( 0, 0, inum4, 'esigw', esigw ) 
    184184         ! 
    185          CALL iom_rstput( 0, 0, inum4, 'e3t', e3t )             !    ! scale factors 
    186          CALL iom_rstput( 0, 0, inum4, 'e3u', e3u ) 
    187          CALL iom_rstput( 0, 0, inum4, 'e3v', e3v ) 
    188          CALL iom_rstput( 0, 0, inum4, 'e3w', e3w ) 
     185         CALL iom_rstput( 0, 0, inum4, 'e3t_0', e3t_0 )         !    ! scale factors 
     186         CALL iom_rstput( 0, 0, inum4, 'e3u_0', e3u_0 ) 
     187         CALL iom_rstput( 0, 0, inum4, 'e3v_0', e3v_0 ) 
     188         CALL iom_rstput( 0, 0, inum4, 'e3w_0', e3w_0 ) 
    189189         CALL iom_rstput( 0, 0, inum4, 'rx1', rx1 )             !    ! Max. grid stiffness ratio 
    190190         ! 
    191          CALL iom_rstput( 0, 0, inum4, 'gdept' , gdept )    !    ! stretched system 
    192          CALL iom_rstput( 0, 0, inum4, 'gdepw' , gdepw ) 
     191         CALL iom_rstput( 0, 0, inum4, 'gdept_1d' , gdept_1d )  !    ! stretched system 
     192         CALL iom_rstput( 0, 0, inum4, 'gdepw_1d' , gdepw_1d ) 
    193193      ENDIF 
    194194       
     
    196196         ! 
    197197         IF( nmsh <= 6 ) THEN                                   !    ! 3D vertical scale factors 
    198             CALL iom_rstput( 0, 0, inum4, 'e3t', e3t )          
    199             CALL iom_rstput( 0, 0, inum4, 'e3u', e3u ) 
    200             CALL iom_rstput( 0, 0, inum4, 'e3v', e3v ) 
    201             CALL iom_rstput( 0, 0, inum4, 'e3w', e3w ) 
     198            CALL iom_rstput( 0, 0, inum4, 'e3t_0', e3t_0 )          
     199            CALL iom_rstput( 0, 0, inum4, 'e3u_0', e3u_0 ) 
     200            CALL iom_rstput( 0, 0, inum4, 'e3v_0', e3v_0 ) 
     201            CALL iom_rstput( 0, 0, inum4, 'e3w_0', e3w_0 ) 
    202202         ELSE                                                   !    ! 2D masked bottom ocean scale factors 
    203203            DO jj = 1,jpj    
    204204               DO ji = 1,jpi 
    205                   e3tp(ji,jj) = e3t(ji,jj,mbkt(ji,jj)) * tmask(ji,jj,1) 
    206                   e3wp(ji,jj) = e3w(ji,jj,mbkt(ji,jj)) * tmask(ji,jj,1) 
     205                  e3tp(ji,jj) = e3t_0(ji,jj,mbkt(ji,jj)) * tmask(ji,jj,1) 
     206                  e3wp(ji,jj) = e3w_0(ji,jj,mbkt(ji,jj)) * tmask(ji,jj,1) 
    207207               END DO 
    208208            END DO 
     
    212212         ! 
    213213         IF( nmsh <= 3 ) THEN                                   !    ! 3D depth 
    214             CALL iom_rstput( 0, 0, inum4, 'gdept', gdept, ktype = jp_r4 )      
     214            CALL iom_rstput( 0, 0, inum4, 'gdept_0', gdept_0, ktype = jp_r4 )      
    215215            DO jk = 1,jpk    
    216216               DO jj = 1, jpjm1    
    217217                  DO ji = 1, fs_jpim1   ! vector opt. 
    218                      zdepu(ji,jj,jk) = MIN( gdept(ji,jj,jk) , gdept(ji+1,jj  ,jk) ) 
    219                      zdepv(ji,jj,jk) = MIN( gdept(ji,jj,jk) , gdept(ji  ,jj+1,jk) ) 
     218                     zdepu(ji,jj,jk) = MIN( gdept_0(ji,jj,jk) , gdept_0(ji+1,jj  ,jk) ) 
     219                     zdepv(ji,jj,jk) = MIN( gdept_0(ji,jj,jk) , gdept_0(ji  ,jj+1,jk) ) 
    220220                  END DO    
    221221               END DO    
     
    224224            CALL iom_rstput( 0, 0, inum4, 'gdepu', zdepu, ktype = jp_r4 ) 
    225225            CALL iom_rstput( 0, 0, inum4, 'gdepv', zdepv, ktype = jp_r4 ) 
    226             CALL iom_rstput( 0, 0, inum4, 'gdepw', gdepw, ktype = jp_r4 ) 
     226            CALL iom_rstput( 0, 0, inum4, 'gdepw_0', gdepw_0, ktype = jp_r4 ) 
    227227         ELSE                                                   !    ! 2D bottom depth 
    228228            DO jj = 1,jpj    
    229229               DO ji = 1,jpi 
    230                   zprt(ji,jj) = gdept(ji,jj,mbkt(ji,jj)  ) * tmask(ji,jj,1) 
    231                   zprw(ji,jj) = gdepw(ji,jj,mbkt(ji,jj)+1) * tmask(ji,jj,1) 
     230                  zprt(ji,jj) = gdept_0(ji,jj,mbkt(ji,jj)  ) * tmask(ji,jj,1) 
     231                  zprw(ji,jj) = gdepw_0(ji,jj,mbkt(ji,jj)+1) * tmask(ji,jj,1) 
    232232               END DO 
    233233            END DO 
     
    246246         CALL iom_rstput( 0, 0, inum4, 'gdept_1d', gdept_1d )   !    ! depth 
    247247         CALL iom_rstput( 0, 0, inum4, 'gdepw_1d', gdepw_1d ) 
    248          CALL iom_rstput( 0, 0, inum4, 'e3t_1d'  , e3t_1d   )     !    ! scale factors 
     248         CALL iom_rstput( 0, 0, inum4, 'e3t_1d'  , e3t_1d   )   !    ! scale factors 
    249249         CALL iom_rstput( 0, 0, inum4, 'e3w_1d'  , e3w_1d   ) 
    250250      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.