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 645 for trunk – NEMO

Changeset 645 for trunk


Ignore:
Timestamp:
2007-03-29T13:40:37+02:00 (17 years ago)
Author:
opalod
Message:

nemo_v2_bugfix_029:RB: correct critical bug in dynadv and dynvor (een scheme) introduced by previous commits

Location:
trunk/NEMO/OPA_SRC/DYN
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/DYN/dynadv.F90

    r643 r645  
    5858      IF( kt == nit000 )   CALL dyn_adv_ctl          ! initialisation & control of options 
    5959 
    60 !      SELECT CASE ( nadv )                     ! compute advection trend and add it to general trend 
    61 !      CASE ( 0 )   ;   CALL dyn_keg     ( kt )    ! vector form : horizontal gradient of kinetic energy 
    62 !         ;             CALL dyn_zad     ( kt )    ! vector form : vertical advection 
    63 !      CASE ( 1 )   ;   CALL dyn_adv_cen2( kt )    ! 2nd order centered scheme 
    64 !      CASE ( 2 )   ;   CALL dyn_adv_ubs ( kt )    ! 3rd order UBS      scheme 
    65 !      ! 
    66 !      CASE (-1 )                                  ! esopa: test all possibility with control print 
    67 !      ;                CALL dyn_keg     ( kt ) 
    68 !      ;                CALL dyn_zad     ( kt ) 
    69 !      ;                CALL dyn_adv_cen2( kt ) 
    70 !      ;                CALL dyn_adv_ubs ( kt ) 
    71 !      END SELECT 
     60      SELECT CASE ( nadv )                     ! compute advection trend and add it to general trend 
     61      CASE ( 0 )      
     62                      CALL dyn_keg     ( kt )    ! vector form : horizontal gradient of kinetic energy 
     63                      CALL dyn_zad     ( kt )    ! vector form : vertical advection 
     64      CASE ( 1 )  
     65                      CALL dyn_adv_cen2( kt )    ! 2nd order centered scheme 
     66      CASE ( 2 )    
     67                      CALL dyn_adv_ubs ( kt )    ! 3rd order UBS      scheme 
     68      ! 
     69      CASE (-1 )                                 ! esopa: test all possibility with control print 
     70                      CALL dyn_keg     ( kt ) 
     71                      CALL dyn_zad     ( kt ) 
     72                      CALL dyn_adv_cen2( kt ) 
     73                      CALL dyn_adv_ubs ( kt ) 
     74      END SELECT 
    7275      ! 
    7376   END SUBROUTINE dyn_adv 
  • trunk/NEMO/OPA_SRC/DYN/dynvor.F90

    r643 r645  
    575575         ! ----------------------------------------- 
    576576         SELECT CASE( kvor )      ! vorticity considered 
    577          CASE ( 1 )   ;   zwz(:,:) =                  ff(:,:)      ! planetary vorticity (Coriolis) 
    578          CASE ( 2 )   ;   zwz(:,:) =   rotn(:,:,jk)                ! relative  vorticity 
     577         CASE ( 1 )   ;   zwz(:,:) = ff(:,:)      * ze3f(:,:,jk)   ! planetary vorticity (Coriolis) 
     578         CASE ( 2 )   ;   zwz(:,:) = rotn(:,:,jk) * ze3f(:,:,jk)   ! relative  vorticity 
    579579         CASE ( 3 )                                                ! metric term 
    580580            DO jj = 1, jpjm1 
     
    585585               END DO 
    586586            END DO 
    587          CASE ( 4 )   ;   zwz(:,:) = ( rotn(:,:,jk) + ff(:,:) )   ! total (relative + planetary vorticity) 
     587         CASE ( 4 )   ;   zwz(:,:) = ( rotn(:,:,jk) + ff(:,:) ) * ze3f(:,:,jk) ! total (relative + planetary vorticity) 
    588588         CASE ( 5 )                                                ! total (coriolis + metric) 
    589589            DO jj = 1, jpjm1 
Note: See TracChangeset for help on using the changeset viewer.