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 116 for trunk/NEMO/OPA_SRC – NEMO

Changeset 116 for trunk/NEMO/OPA_SRC


Ignore:
Timestamp:
2004-06-28T17:09:50+02:00 (20 years ago)
Author:
opalod
Message:

CT : UPDATE075 : Save the mbathy 2D array and the 3D scale factors e3t_ps and e3w_ps in partial steps in the mesh_zgr.nc file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/DOM/domwri.F90

    r107 r116  
    22   !!====================================================================== 
    33   !!                       ***  MODULE domwri  *** 
    4    !! Ocean initialization : write the ocean domain mesh and mask file(s) 
     4   !! Ocean initialization : write the ocean domain mesh ask file(s) 
    55   !!====================================================================== 
    66 
     
    8888      INTEGER  ::   itime           !  output from restini ??? 
    8989      REAL(wp) ::   zdate0 
     90      REAL(wp), DIMENSION(jpi,jpj) ::   & 
     91         zprt                       ! temporary array for bathymetry  
     92 
    9093      CHARACTER (len=21) ::      & 
    9194         clnam0 = 'mesh_mask',   &  ! filename (mesh and mask informations) 
     
    102105      CALL ymds2ju( 0, 1, 1, 0.e0, zdate0 )    ! calendar initialization 
    103106 
     107!       note that mbathy has been modified in dommsk or in solver. 
     108!       it is the number of non-zero "w" levels in the water, and the minimum  
     109!       value (on land) is 2. We define zprt as the number of "T" points in the ocean  
     110!       at any location, and zero on land.  
     111! 
     112      zprt = tmask(:,:,1)*(mbathy-1) 
    104113 
    105114      SELECT CASE (nmsh) 
     
    179188         CALL restput( inum3, 'ff', jpi, jpj, 1, 0, ff )           !    ! coriolis factor 
    180189 
     190         CALL restput( inum4, 'mbathy', jpi, jpj, 1, 0, zprt ) 
     191 
    181192# if defined key_s_coord 
    182193         !                                                         ! s-coordinate 
     
    197208         CALL restput( inum4, 'hdepw' , jpi, jpj, 1, 0, hdepw  )  
    198209 
    199          CALL restput( inum4, 'e3tp'  , jpi, jpj, 1  , 0, e3tp   )  !    ! scale factors 
    200          CALL restput( inum4, 'e3wp'  , jpi, jpj, 1  , 0, e3wp   ) 
     210         CALL restput( inum4, 'e3t_ps', jpi, jpj, jpk, 0, e3t_ps )  !    ! scale factors 
    201211         CALL restput( inum4, 'e3u_ps', jpi, jpj, jpk, 0, e3u_ps ) 
    202212         CALL restput( inum4, 'e3v_ps', jpi, jpj, jpk, 0, e3v_ps ) 
     213         CALL restput( inum4, 'e3w_ps', jpi, jpj, jpk, 0, e3w_ps ) 
    203214 
    204215         CALL restput( inum4, 'gdept' , 1, 1, jpk, 0, gdept )       !    ! reference z-coord. 
Note: See TracChangeset for help on using the changeset viewer.