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/step.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/step.F90

    r367 r389  
    118118   USE prtctl          ! Print control                    (prt_ctl routine) 
    119119 
     120#if defined key_AGRIF 
     121   USE agrif_opa_sponge ! Momemtum and tracers sponges 
     122#endif 
     123 
    120124   IMPLICIT NONE 
    121125   PRIVATE 
     
    135139CONTAINS 
    136140 
    137    SUBROUTINE stp( kstp ) 
    138       !!---------------------------------------------------------------------- 
     141   SUBROUTINE stp( & 
     142#if !defined key_AGRIF 
     143   kstp & 
     144#endif    
     145   )      !!---------------------------------------------------------------------- 
    139146      !!                     ***  ROUTINE stp  *** 
    140147      !!                       
     
    165172      !!    "   !  04-08  (C. Talandier) New trends organization 
    166173      !!    "   !  05-01  (C. Ethe) Add the KPP closure scheme 
    167       !!    "   !  05-11  (V. Garnier) Surface pressure gradient organization 
    168174      !!---------------------------------------------------------------------- 
    169175      !! * Arguments 
    170       INTEGER, INTENT( in ) ::   kstp   ! ocean time-step index 
     176      INTEGER & 
     177#if !defined key_AGRIF    
     178      , INTENT( in ) & 
     179#endif       
     180      ::   kstp   ! ocean time-step index 
    171181 
    172182      !! * local declarations 
     
    174184      !! --------------------------------------------------------------------- 
    175185 
     186#if defined key_AGRIF 
     187      kstp = nit000 + Agrif_Nb_Step() 
     188      IF ( Agrif_Root() .and. lwp) Write(*,*) '---' 
     189      IF (lwp) Write(*,*) 'Grid N°',Agrif_Fixed(),' time step ',kstp 
     190#endif    
    176191      indic = 1                    ! reset to no error condition 
    177192      adatrj = adatrj + rdt/86400._wp 
     
    321336      IF( l_traldf_iso_zps )   CALL tra_ldf_iso_zps( kstp )           ! partial step iso-neutral/geopot. laplacian 
    322337 
     338#if defined key_AGRIF 
     339      IF (.NOT. Agrif_Root())  CALL Agrif_Sponge_tra( kstp )          ! tracers sponge 
     340#endif 
    323341      !                                                       ! vertical diffusion 
    324342      IF( l_trazdf_exp     )   CALL tra_zdf_exp     ( kstp )          ! explicit time stepping (time splitting scheme) 
     
    353371                               va(:,:,:) = 0.e0 
    354372 
    355                                CALL dyn_keg( kstp )           ! horizontal gradient of kinetic energy 
     373      CALL dyn_keg( kstp )           ! horizontal gradient of kinetic energy 
    356374 
    357375      !                                                       ! vorticity term including Coriolis 
     
    361379      IF( ln_dynvor_mix    )   CALL dyn_vor_mixed    ( kstp )        ! mixed energy/enstrophy conserving scheme 
    362380      IF( ln_dynvor_een    )   CALL dyn_vor_ene_ens  ( kstp )        ! combined energy/enstrophy conserving scheme 
    363  
     381       
    364382      !                                                       ! lateral mixing  
    365383      IF( l_dynldf_lap     )   CALL dyn_ldf_lap    ( kstp )          ! iso-level laplacian 
     
    368386      IF( l_dynldf_iso     )   CALL dyn_ldf_iso    ( kstp )          ! iso-neutral laplacian  
    369387 
     388#if defined key_AGRIF 
     389      IF (.NOT. Agrif_Root())  CALL Agrif_Sponge_dyn( kstp )         ! momemtum sponge 
     390#endif 
    370391      !                                                       ! horizontal gradient of Hydrostatic pressure  
    371392      IF ( lk_jki ) THEN 
     
    375396      ENDIF 
    376397 
    377                                CALL dyn_zad    ( kstp )       ! vertical advection        
     398      CALL dyn_zad    ( kstp )       ! vertical advection        
    378399 
    379400      !                                                       ! vertical diffusion 
Note: See TracChangeset for help on using the changeset viewer.