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 7200 for branches/2016/dev_r6409_SIMPLIF_2_usrdef/NEMOGCM/NEMO/NST_SRC/agrif_user.F90 – NEMO

Ignore:
Timestamp:
2016-11-06T17:31:33+01:00 (7 years ago)
Author:
gm
Message:

#1692 - branch SIMPLIF_2_usrdef: add depth_e3 module + management of ORCA family + domain_cfg filename (in&out) given in namelist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r6409_SIMPLIF_2_usrdef/NEMOGCM/NEMO/NST_SRC/agrif_user.F90

    r6717 r7200  
    11#if defined key_agrif 
    22!!---------------------------------------------------------------------- 
    3 !! NEMO/NST 3.7 , NEMO Consortium (2015) 
     3!! NEMO/NST 3.7 , NEMO Consortium (2016) 
    44!! $Id$ 
    55!! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
     
    1818   USE dom_oce 
    1919   USE nemogcm 
    20    ! 
     20   !! 
    2121   IMPLICIT NONE 
    2222   !!---------------------------------------------------------------------- 
     
    6060   USE tradmp 
    6161   USE bdy_par 
    62  
    63    IMPLICIT NONE 
    64    !!---------------------------------------------------------------------- 
    65    ! 0. Initializations 
    66    !------------------- 
    67    IF( cp_cfg == 'orca' ) THEN 
    68       IF ( jp_cfg == 2 .OR. jp_cfg == 025 .OR. jp_cfg == 05 & 
    69             &                      .OR. jp_cfg == 4 ) THEN 
    70          jp_cfg = -1    ! set special value for jp_cfg on fine grids 
    71          cp_cfg = "default" 
     62   !! 
     63   IMPLICIT NONE 
     64   !!---------------------------------------------------------------------- 
     65   ! 
     66!!gm  I think this is now useless ...   nn_cfg & cn_cfg are set to -999999 and "UNKNOWN"  
     67!!gm                                    when reading the AGRIF domain configuration file 
     68   IF( cn_cfg == 'orca' ) THEN 
     69      IF ( nn_cfg == 2 .OR. nn_cfg == 025 .OR. nn_cfg == 05  .OR. nn_cfg == 4 ) THEN 
     70         nn_cfg = -1    ! set special value for nn_cfg on fine grids 
     71         cn_cfg = "default" 
    7272      ENDIF 
    7373   ENDIF 
    74    ! Specific fine grid Initializations 
    75    ! no tracer damping on fine grids 
    76    ln_tradmp = .FALSE. 
    77    ! no open boundary on fine grids 
    78    lk_bdy = .FALSE. 
    79  
    80  
    81    CALL nemo_init  ! Initializations of each fine grid 
    82  
     74!!gm end 
     75 
     76   !                    !* Specific fine grid Initializations 
     77   ln_tradmp = .FALSE.        ! no tracer damping on fine grids 
     78   ! 
     79   lk_bdy    = .FALSE.        ! no open boundary on fine grids 
     80 
     81   CALL nemo_init       !* Initializations of each fine grid 
     82 
     83   !                    !* Agrif initialization 
    8384   CALL agrif_nemo_init 
    8485   CALL Agrif_InitValues_cont_dom 
     
    8889# if defined key_top 
    8990   CALL Agrif_InitValues_cont_top 
    90 # endif       
     91# endif 
     92   ! 
    9193END SUBROUTINE Agrif_initvalues 
    9294 
     
    106108   USE agrif_opa_interp 
    107109   USE agrif_opa_sponge 
    108    ! 
    109    IMPLICIT NONE 
    110    ! 
    111    !!---------------------------------------------------------------------- 
    112  
     110   !! 
     111   IMPLICIT NONE 
     112   !!---------------------------------------------------------------------- 
     113   ! 
    113114   ! Declaration of the type of variable which have to be interpolated 
    114    !--------------------------------------------------------------------- 
     115   ! 
    115116   CALL agrif_declare_var_dom 
    116117   ! 
     
    127128   USE par_oce        
    128129   USE oce 
     130   !! 
    129131   IMPLICIT NONE 
    130132   !!---------------------------------------------------------------------- 
     
    174176   USE agrif_opa_interp 
    175177   USE agrif_opa_sponge 
    176    ! 
     178   !! 
    177179   IMPLICIT NONE 
    178180   ! 
     
    344346   USE oce 
    345347   USE agrif_oce 
     348   !! 
    346349   IMPLICIT NONE 
    347350   !!---------------------------------------------------------------------- 
     
    482485   USE agrif_lim2_interp 
    483486   USE lib_mpp 
    484    ! 
    485    IMPLICIT NONE 
    486    ! 
     487   !! 
     488   IMPLICIT NONE 
    487489   !!---------------------------------------------------------------------- 
    488490 
     
    519521END SUBROUTINE Agrif_InitValues_cont_lim2 
    520522 
     523 
    521524SUBROUTINE agrif_declare_var_lim2 
    522525   !!---------------------------------------------------------------------- 
     
    527530   USE agrif_util 
    528531   USE ice_2 
    529  
     532   !! 
    530533   IMPLICIT NONE 
    531534   !!---------------------------------------------------------------------- 
     
    583586   USE agrif_top_interp 
    584587   USE agrif_top_sponge 
    585    ! 
     588   !! 
    586589   IMPLICIT NONE 
    587590   ! 
     
    682685   USE dom_oce 
    683686   USE trc 
    684  
    685    IMPLICIT NONE 
     687   !! 
     688   IMPLICIT NONE 
     689   !!---------------------------------------------------------------------- 
    686690 
    687691   ! 1. Declaration of the type of variable which have to be interpolated 
     
    714718SUBROUTINE Agrif_detect( kg, ksizex ) 
    715719   !!---------------------------------------------------------------------- 
    716    !!   *** ROUTINE Agrif_detect *** 
    717    !!---------------------------------------------------------------------- 
    718    ! 
     720   !!                      *** ROUTINE Agrif_detect *** 
     721   !!---------------------------------------------------------------------- 
    719722   INTEGER, DIMENSION(2) :: ksizex 
    720723   INTEGER, DIMENSION(ksizex(1),ksizex(2)) :: kg  
     
    734737   USE in_out_manager 
    735738   USE lib_mpp 
     739   !! 
    736740   IMPLICIT NONE 
    737741   ! 
     
    787791   !!---------------------------------------------------------------------- 
    788792   USE dom_oce 
     793   !! 
    789794   IMPLICIT NONE 
    790795   ! 
     
    801806END SUBROUTINE Agrif_InvLoc 
    802807 
     808 
    803809SUBROUTINE Agrif_get_proc_info( imin, imax, jmin, jmax ) 
    804810   !!---------------------------------------------------------------------- 
     
    806812   !!---------------------------------------------------------------------- 
    807813   USE par_oce 
     814   !! 
    808815   IMPLICIT NONE 
    809816   ! 
     
    819826END SUBROUTINE Agrif_get_proc_info 
    820827 
     828 
    821829SUBROUTINE Agrif_estimate_parallel_cost(imin, imax,jmin, jmax, nbprocs, grid_cost) 
    822830   !!---------------------------------------------------------------------- 
     
    824832   !!---------------------------------------------------------------------- 
    825833   USE par_oce 
     834   !! 
    826835   IMPLICIT NONE 
    827836   ! 
Note: See TracChangeset for help on using the changeset viewer.