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

Ignore:
Timestamp:
2019-02-27T17:02:02+01:00 (5 years ago)
Author:
rblod
Message:

new nesting tools (attempt) and brutal cleaning of DOMAINcfg, see ticket #2129

File:
1 moved

Legend:

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

    r10725 r10727  
    2424   USE dom_oce         ! domain: ocean 
    2525   USE phycst          ! physical constants 
    26    USE closea          ! closed seas 
     26 !  USE closea          ! closed seas 
    2727   USE domhgr          ! domain: set the horizontal mesh 
    2828   USE domzgr          ! domain: set the vertical mesh 
    29    USE domstp          ! domain: set the time-step 
     29 !  USE domstp          ! domain: set the time-step 
    3030   USE dommsk          ! domain: set the mask system 
    3131   USE domwri          ! domain: write the meshmask file 
     
    4343 
    4444   PUBLIC   dom_init   ! called by opa.F90 
     45   PUBLIC   dom_nam  ! called by opa.F90 
     46   PUBLIC   cfg_write   ! called by opa.F90 
    4547 
    4648   !!------------------------------------------------------------------------- 
     
    7274      !!---------------------------------------------------------------------- 
    7375      ! 
    74       IF( nn_timing == 1 )   CALL timing_start('dom_init') 
     76     ! IF( nn_timing == 1 )   CALL timing_start('dom_init') 
    7577      ! 
    7678      IF(lwp) THEN 
     
    8385      ! 
    8486                     CALL dom_nam               ! read namelist ( namrun, namdom ) 
    85                      CALL dom_clo               ! Closed seas and lake 
     87                  !   CALL dom_clo               ! Closed seas and lake 
     88          
    8689                     CALL dom_hgr               ! Horizontal mesh 
    8790                     CALL dom_zgr               ! Vertical mesh and bathymetry 
     
    135138      CALL cfg_write         ! create the configuration file 
    136139      ! 
    137       IF( nn_timing == 1 )   CALL timing_stop('dom_init') 
     140    !  IF( nn_timing == 1 )   CALL timing_stop('dom_init') 
    138141      ! 
    139142   END SUBROUTINE dom_init 
     
    156159         &             nn_stock, nn_write , ln_mskland  , ln_clobber   , nn_chunksz, nn_euler  ,     & 
    157160         &             ln_cfmeta, ln_iscpl 
    158       NAMELIST/namdom/ nn_bathy, rn_bathy , rn_e3zps_min, rn_e3zps_rat, nn_msh, rn_hmin, rn_isfhmin, & 
     161      NAMELIST/namdom/ nn_bathy, cn_topo, cn_bath, cn_lon, cn_lat, nn_interp,                        & 
     162         &             rn_bathy , rn_e3zps_min, rn_e3zps_rat, nn_msh, rn_hmin, rn_isfhmin,           & 
    159163         &             rn_atfp , rn_rdt   , nn_closea   , ln_crs      , jphgr_msh ,                  & 
    160164         &             ppglam0, ppgphi0, ppe1_deg, ppe2_deg, ppe1_m, ppe2_m,                         & 
     
    209213      ENDIF 
    210214 
    211       no = nn_no                    ! conversion DOCTOR names into model names (this should disappear soon) 
    212215      cexper = cn_exp 
    213216      nrstdt = nn_rstctl 
     
    271274         WRITE(numout,*) '   Namelist namdom : space & time domain' 
    272275         WRITE(numout,*) '      flag read/compute bathymetry      nn_bathy     = ', nn_bathy 
     276         IF( nn_bathy == 2 ) THEN 
     277            WRITE(numout,*) '      compute bathymetry from file      cn_topo      = ', cn_topo 
     278         ENDIF    
    273279         WRITE(numout,*) '      Depth (if =0 bathy=jpkm1)         rn_bathy     = ', rn_bathy 
    274280         WRITE(numout,*) '      min depth of the ocean    (>0) or    rn_hmin   = ', rn_hmin 
     
    331337      !!---------------------------------------------------------------------- 
    332338      ! 
     339#undef CHECK_DOM 
     340#ifdef CHECK_DOM 
    333341      IF(lk_mpp) THEN 
    334342         CALL mpp_minloc( e1t(:,:), tmask_i(:,:), ze1min, iimi1,ijmi1 ) 
     
    364372         WRITE(numout,"(14x,'e2t mini: ',1f10.2,' at i = ',i5,' j= ',i5)") ze2min, iimi2, ijmi2 
    365373      ENDIF 
     374#endif 
    366375      ! 
    367376   END SUBROUTINE dom_ctl 
     
    400409      !          
    401410      clnam = 'domain_cfg'  ! filename (configuration information) 
    402       CALL iom_open( TRIM(clnam), inum, ldwrt = .TRUE., kiolib = jprstlib ) 
     411      CALL iom_open( TRIM(clnam), inum, ldwrt = .TRUE.)!, kiolib = jprstlib ) 
    403412       
    404413      ! 
Note: See TracChangeset for help on using the changeset viewer.