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 389 for trunk/NEMO/OPA_SRC/DOM/domain.F90 – NEMO

Ignore:
Timestamp:
2006-03-09T18:22:04+01:00 (18 years ago)
Author:
opalod
Message:

RB:nemo_v1_update_038: first integration of Agrif :

  • configuration parameters are just integer when agrif is used
  • add call to agrif routines with key_agrif
File:
1 edited

Legend:

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

    r359 r389  
    9797      hu(:,:) = 0. 
    9898      hv(:,:) = 0. 
     99 
    99100      DO jk = 1, jpk 
    100101         hu(:,:) = hu(:,:) + fse3u(:,:,jk) * umask(:,:,jk) 
     
    104105      hur(:,:) = fse3u(:,:,1)             ! Lower bound : thickness of the first model level 
    105106      hvr(:,:) = fse3v(:,:,1) 
     107       
    106108      DO jk = 2, jpk                      ! Sum of the vertical scale factors 
    107109         hur(:,:) = hur(:,:) + fse3u(:,:,jk) * umask(:,:,jk) 
    108110         hvr(:,:) = hvr(:,:) + fse3v(:,:,jk) * vmask(:,:,jk) 
    109111      END DO 
     112 
    110113      ! Compute and mask the inverse of the local depth 
    111114      hur(:,:) = 1. / hur(:,:) * umask(:,:,1) 
     
    137140      !! * Modules used 
    138141      USE ioipsl 
    139       NAMELIST/namrun/ no    , cexper   , ln_rstart , nrstdt , nit000,          & 
    140          &             nitend, ndate0   , nleapy   , ninist , nstock,           & 
     142      NAMELIST/namrun/ no    , cexper   , ln_rstart , nrstdt , nit000,         & 
     143         &             nitend, ndate0   , nleapy   , ninist , nstock,          & 
    141144         &             nprint, nwrite   , nrunoff  , ln_ctl , nictls, nictle,   & 
    142145         &             njctls, njctle   , nbench   , isplt  , jsplt 
     
    261264      ENDIF 
    262265 
     266#if defined key_AGRIF 
     267      if ( Agrif_Root() ) then 
     268#endif 
    263269      SELECT CASE ( nleapy )   ! Choose calendar for IOIPSL 
    264270      CASE (  1 )  
     
    272278         IF(lwp) WRITE(numout,*) '           The IOIPSL calendar is "360d", i.e. 360 days in a year' 
    273279      END SELECT 
     280#if defined key_AGRIF 
     281      endif 
     282#endif 
    274283 
    275284      SELECT CASE ( nleapy )   ! year=raajj*days day=rjjhh*hours hour=rhhmm*minutes etc ... 
Note: See TracChangeset for help on using the changeset viewer.