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 13024 for utils/tools_dev_r12970_AGRIF_CMEMS/DOMAINcfg/src/domain.F90 – NEMO

Ignore:
Timestamp:
2020-06-03T16:26:23+02:00 (4 years ago)
Author:
rblod
Message:

First version of new nesting tools merged with domaincfg, see ticket #2129

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/tools_dev_r12970_AGRIF_CMEMS/DOMAINcfg/src/domain.F90

    r12870 r13024  
    6262      !!              - 1D configuration, move Coriolis, u and v at T-point 
    6363      !!---------------------------------------------------------------------- 
     64      INTEGER ::   jk          ! dummy loop indices 
     65      INTEGER ::   iconf = 0   ! local integers 
     66      REAL(wp), POINTER, DIMENSION(:,:) ::   z1_hu_0, z1_hv_0 
     67      INTEGER , DIMENSION(jpi,jpj) ::   ik_top , ik_bot       ! top and bottom ocean level 
     68      !!---------------------------------------------------------------------- 
     69      ! 
     70     ! IF( nn_timing == 1 )   CALL timing_start('dom_init') 
    6471      ! 
    6572      IF(lwp) THEN 
     
    7178      !                       !==  Reference coordinate system  ==! 
    7279      ! 
    73       CALL dom_nam                  ! read namelist ( namrun, namdom ) 
    74       ! 
    75       CALL dom_hgr                  ! Horizontal mesh 
    76       ! 
    77       CALL dom_zgr                  ! Vertical mesh and bathymetry 
    78       ! 
    79       CALL dom_msk                  ! compute mask (needed by write_cfg) 
    80       ! 
    81       IF ( ln_domclo ) CALL dom_clo ! Closed seas and lake 
     80      CALL dom_nam               ! read namelist ( namrun, namdom ) 
     81                  !   CALL dom_clo               ! Closed seas and lake 
     82          
     83      CALL dom_hgr               ! Horizontal mesh 
     84      CALL dom_zgr( ik_top, ik_bot )  ! Vertical mesh and bathymetry 
     85      CALL dom_msk( ik_top, ik_bot )  ! Masks 
     86      ! 
    8287      ! 
    8388      CALL dom_ctl                  ! print extrema of masked scale factors 
    8489      !  
     90#if ! defined key_agrif 
    8591      CALL cfg_write                ! create the configuration file 
     92#endif 
    8693      ! 
    8794   END SUBROUTINE dom_init 
     
    103110         &             nn_stock, nn_write , ln_mskland  , ln_clobber   , nn_chunksz, nn_euler  ,     & 
    104111         &             ln_cfmeta, ln_iscpl 
    105       NAMELIST/namdom/ nn_bathy, cn_topo, cn_bath, cn_lon, cn_lat, nn_interp,                        & 
    106          &             rn_bathy , rn_e3zps_min, rn_e3zps_rat, nn_msh, rn_hmin,                       & 
    107          &             rn_atfp , rn_rdt   , ln_crs      , jphgr_msh ,                                & 
     112  !    NAMELIST/namdom/ nn_bathy, cn_topo, cn_bath, cn_lon, cn_lat, nn_interp,                        & 
     113  !       &             rn_bathy , rn_e3zps_min, rn_e3zps_rat, nn_msh, rn_hmin,                       & 
     114  !       &             rn_atfp , rn_rdt   , ln_crs      , jphgr_msh ,                                & 
     115  !       &             ppglam0, ppgphi0, ppe1_deg, ppe2_deg, ppe1_m, ppe2_m,                         & 
     116  !       &             ppsur, ppa0, ppa1, ppkth, ppacr, ppdzmin, pphmax, ldbletanh,                  & 
     117  !       &             ppa2, ppkth2, ppacr2 
     118 
     119      NAMELIST/namdom/ nn_bathy, cn_topo, cn_bath, cn_lon, cn_lat, rn_scale, nn_interp, & 
     120         &              rn_bathy , rn_e3zps_min, rn_e3zps_rat, nn_msh, rn_hmin,            & 
     121         &             rn_atfp , rn_rdt   ,  ln_crs      , jphgr_msh ,                               & 
    108122         &             ppglam0, ppgphi0, ppe1_deg, ppe2_deg, ppe1_m, ppe2_m,                         & 
    109123         &             ppsur, ppa0, ppa1, ppkth, ppacr, ppdzmin, pphmax, ldbletanh,                  & 
    110124         &             ppa2, ppkth2, ppacr2 
    111  
    112  
    113125 
    114126      INTEGER  ::   ios                 ! Local integer output status for namelist read 
     
    181193 
    182194 
    183  
     195      !  
     196      cn_topo ='' 
     197      cn_bath ='' 
     198      cn_lon  ='' 
     199      cn_lat  ='' 
     200      rn_scale = 1. 
    184201 
    185202      REWIND( numnam_ref )              ! Namelist namdom in reference namelist : space & time domain (bathymetry, mesh, timestep) 
     
    193210      IF(lwm) WRITE ( numond, namdom ) 
    194211      ! 
     212 
     213 
     214 
    195215      IF(lwp) THEN 
    196216         WRITE(numout,*) 
     
    198218         WRITE(numout,*) '      flag read/compute bathymetry      nn_bathy     = ', nn_bathy 
    199219         IF( nn_bathy == 2 ) THEN 
    200             WRITE(numout,*) '      compute bathymetry from file      cn_topo      = ', cn_topo 
     220            WRITE(numout,*) '   compute bathymetry from file      cn_topo      = ' , cn_topo 
     221            WRITE(numout,*) '   bathymetry name in file           cn_bath      = ' , cn_bath 
     222            WRITE(numout,*) '   longitude name in file            cn_lon       = ' , cn_lon 
     223            WRITE(numout,*) '   latitude  name in file            cn_lat       = ' , cn_lat 
     224            WRITE(numout,*) '   bathmetry scale factor            rn_scale     = ' , rn_scale  
    201225         ENDIF    
    202226         WRITE(numout,*) '      Depth (if =0 bathy=jpkm1)         rn_bathy     = ', rn_bathy 
     
    255279      !!---------------------------------------------------------------------- 
    256280      ! 
     281#undef CHECK_DOM 
     282#ifdef CHECK_DOM 
    257283      IF(lk_mpp) THEN 
    258284         CALL mpp_minloc( 'dom_ctl', e1t(:,:), tmask_i(:,:), ze1min, iloc ) 
     
    292318         WRITE(numout,"(14x,'e2t mini: ',1f10.2,' at i = ',i5,' j= ',i5)") ze2min, iimi2, ijmi2 
    293319      ENDIF 
     320#endif 
    294321      ! 
    295322      ! check that all processes are still there... If some process have an error, 
Note: See TracChangeset for help on using the changeset viewer.