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 6624 for branches/2016/dev_r6409_SIMPLIF_2_usrdef/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90 – NEMO

Ignore:
Timestamp:
2016-05-26T10:59:48+02:00 (8 years ago)
Author:
gm
Message:

#1692 - branch SIMPLIF_2_usrdef: add domain_cfg.nc file which includes jperio, and vert. coord. logicals. +code cleaning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r6409_SIMPLIF_2_usrdef/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90

    r6596 r6624  
    238238      INTEGER  ::   ilocal_comm   ! local integer 
    239239      INTEGER  ::   ios, inum     !   -      - 
    240       REAL(wp) ::   ziglo, zjglo, zkglo   ! local scalars 
     240      REAL(wp) ::   ziglo, zjglo, zkglo, zperio   ! local scalars 
    241241      CHARACTER(len=120), DIMENSION(16) ::   cltxt, cltxt2, clnam, clbug 
    242242      ! 
     
    244244         &             nn_isplt, nn_jsplt, nn_jctls, nn_jctle,   & 
    245245         &             nn_timing, nn_diacfl 
    246       NAMELIST/namcfg/ ln_read_cfg, cp_cfg, cp_cfz, jp_cfg,   & 
    247          &             jperio, ln_use_jattr 
     246      NAMELIST/namcfg/ ln_read_cfg, cp_cfg, jp_cfg, ln_use_jattr 
    248247      !!---------------------------------------------------------------------- 
    249248      ! 
     
    284283 
    285284      !                             !--------------------------! 
    286       !                             !  Set global domain size  ! 
     285      !                             !  Set global domain size  !   (control print return in cltxt2) 
    287286      !                             !--------------------------! 
    288287      IF( ln_read_cfg ) THEN              ! Read sizes in configuration "mesh_mask" file 
    289          CALL iom_open( 'mesh_mask', inum ) 
    290          CALL iom_get( inum, 'jpiglo', ziglo )   ;   jpiglo = INT( ziglo ) 
    291          CALL iom_get( inum, 'jpjglo', zjglo )   ;   jpjglo = INT( zjglo ) 
    292          CALL iom_get( inum, 'jpkglo', zkglo )   ;   jpkglo = INT( zkglo ) 
     288         CALL iom_open( 'domain_cfg', inum ) 
     289         CALL iom_get( inum, 'jpiglo', ziglo  )   ;   jpiglo = INT( ziglo ) 
     290         CALL iom_get( inum, 'jpjglo', zjglo  )   ;   jpjglo = INT( zjglo ) 
     291         CALL iom_get( inum, 'jpkglo', zkglo  )   ;   jpkglo = INT( zkglo ) 
     292         CALL iom_get( inum, 'jperio', zperio )   ;   jperio = INT( zperio ) 
    293293         CALL iom_close( inum ) 
    294294         WRITE(cltxt2(1),*)        
    295          WRITE(cltxt2(2),*) 'mesh_mask : domain size read in "mesh_mask" file : i,j,k = ', jpiglo, jpjglo, jpk         
    296          WRITE(cltxt2(3),*) '~~~~~~~~~'         
    297       ELSE                                ! user-defined namelist (control print return in cltxt2) 
    298          CALL usr_def_nam( cltxt2, clnam, jpiglo, jpjglo, jpkglo ) 
     295         WRITE(cltxt2(2),*) 'domain_cfg : domain size read in "domain_cfg" file : jp(i,j,k)glo = ', jpiglo, jpjglo, jpkglo         
     296         WRITE(cltxt2(3),*) '~~~~~~~~~~   lateral boudary type of the global domain      jperio= ', jperio 
     297         !         
     298      ELSE                                ! user-defined namelist 
     299         CALL usr_def_nam( cltxt2, clnam, jpiglo, jpjglo, jpkglo, jperio ) 
    299300      ENDIF 
    300301      jpk    = jpkglo 
     
    426427         WRITE(numout,*) 
    427428         DO ji = 1, SIZE(cltxt2) 
    428             IF( TRIM(cltxt2(ji)) /= '' )   WRITE(numout,*) cltxt2(ji)     ! control print of domain size 
     429!            IF( TRIM(cltxt2(ji)) /= '' )   WRITE(numout,*) cltxt2(ji)     ! control print of domain size 
     430            IF( cltxt2(ji) /= '' )   WRITE(numout,*) cltxt2(ji)     ! control print of domain size 
    429431         END DO 
    430432         ! 
     
    433435      ENDIF 
    434436 
    435       ! Now we know the dimensions of the grid and numout has been set we can 
    436       ! allocate arrays 
     437      ! Now we know the dimensions of the grid and numout has been set: we can allocate arrays 
    437438      CALL nemo_alloc() 
    438  
    439       WRITE(numout,*) ' -after alloc--    nstop', nstop 
    440  
    441439      !                             !-------------------------------! 
    442440      !                             !  NEMO general initialization  ! 
     
    601599         WRITE(numout,*) '      read configuration definition files          ln_read_cfg = ', ln_read_cfg 
    602600         WRITE(numout,*) '      configuration name                               cp_cfg  = ', TRIM(cp_cfg) 
    603          WRITE(numout,*) '      configuration zoom name                          cp_cfz  = ', TRIM(cp_cfz) 
    604601         WRITE(numout,*) '      configuration resolution                         jp_cfg  = ', jp_cfg 
    605          WRITE(numout,*) '      lateral cond. type (between 0 and 6)             jperio  = ', jperio    
    606602         WRITE(numout,*) '      use file attribute if exists as i/p j-start ln_use_jattr = ', ln_use_jattr 
    607603      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.