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 605 – NEMO

Changeset 605


Ignore:
Timestamp:
2007-02-20T17:12:23+01:00 (17 years ago)
Author:
opalod
Message:

nemo_v2_bugfix_013 : CT : - ensure the same computation of aht[uvw] fields either in Open-MP, mono or MPI

  • take the minimum between aeiw and 1000 m2/s for depth levels lower than 20 ONLY for ORCAR2_LIM configuration
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/LDF/ldfeiv.F90

    r461 r605  
    124124            ! Compute aeiw by multiplying Ro^2 and T^-1 
    125125            aeiw(ji,jj) = zross(ji,jj) * zross(ji,jj) * SQRT( zah(ji,jj) / zhw(ji,jj) ) * tmask(ji,jj,1) 
    126             ! Take the minimum between aeiw and 1000m^2/s for depth levels 
    127             ! lower than 20 (21 in w- point) 
    128             IF( mbathy(ji,jj) <= 21. ) aeiw(ji,jj) = MIN( aeiw(ji,jj), 1000. ) 
     126            IF( cp_cfg == "orca" .AND. jp_cfg == 2 ) THEN   ! ORCA R02 
     127               ! Take the minimum between aeiw and aeiv0 for depth levels 
     128               ! lower than 20 (21 in w- point) 
     129               IF( mbathy(ji,jj) <= 21. ) aeiw(ji,jj) = MIN( aeiw(ji,jj), 1000. ) 
     130            ENDIF 
    129131         END DO 
    130132 
     
    135137         END DO 
    136138   
    137          ! ORCA R05: Take the minimum between aeiw  and 1000m2/s 
     139         ! ORCA R05: Take the minimum between aeiw and aeiv0 
    138140         IF( cp_cfg == "orca" .AND. jp_cfg == 05 ) THEN   ! ORCA R05 
    139141            DO ji = 2, jpim1 
    140                aeiw(ji,jj) = MIN( aeiw(ji,jj), 1000. ) 
     142               aeiw(ji,jj) = MIN( aeiw(ji,jj), aeiv0 ) 
    141143            END DO 
    142144         ENDIF 
     
    176178               zaht      = ( 1. -  MIN( 1., ABS( ff(ji,jj) / zf20 ) ) ) * ( aht0 - zaht_min )  & 
    177179                  &      + aht0 * upsrnfh(ji,jj)                          ! enhanced near river mouths 
    178                ahtu(ji,jj) = MAX( zaht_min, aeiu(ji,jj) ) + zaht 
    179                ahtv(ji,jj) = MAX( zaht_min, aeiv(ji,jj) ) + zaht 
    180                ahtw(ji,jj) = MAX( zaht_min, aeiw(ji,jj) ) + zaht 
     180               ahtu(ji,jj) = MAX( MAX( zaht_min, aeiu(ji,jj) ) + zaht, aht0 ) 
     181               ahtv(ji,jj) = MAX( MAX( zaht_min, aeiv(ji,jj) ) + zaht, aht0 ) 
     182               ahtw(ji,jj) = MAX( MAX( zaht_min, aeiw(ji,jj) ) + zaht, aht0 ) 
    181183            END DO 
    182184         END DO 
     
    298300            ! Compute aeiw by multiplying Ro^2 and T^-1 
    299301            aeiw(ji,jj) = zross(ji,jj) * zross(ji,jj) * SQRT( zah(ji,jj) / zhw(ji,jj) ) * tmask(ji,jj,1) 
    300             ! Take the minimum between aeiw and 1000m^2/s for depth levels 
    301             ! lower than 20 (21 in w- point) 
    302             IF( mbathy(ji,jj) <= 21. ) aeiw(ji,jj) = MIN( aeiw(ji,jj), 1000. ) 
     302            IF( cp_cfg == "orca" .AND. jp_cfg == 2 ) THEN   ! ORCA R02 
     303               ! Take the minimum between aeiw and aeiv0 for depth levels 
     304               ! lower than 20 (21 in w- point) 
     305               IF( mbathy(ji,jj) <= 21. ) aeiw(ji,jj) = MIN( aeiw(ji,jj), 1000. ) 
     306            ENDIF 
    303307         END DO 
    304308      END DO 
    305309 
    306310      ! Decrease the coefficient in the tropics (20N-20S)  
    307          zf20 = 2. * omega * sin( rad * 20. ) 
     311      zf20 = 2. * omega * sin( rad * 20. ) 
    308312      DO jj = 2, jpjm1 
    309313         DO ji = fs_2, fs_jpim1   ! vector opt. 
     
    312316      END DO 
    313317 
    314       ! ORCA R05: Take the minimum between aeiw  and 1000m2/s 
     318      ! ORCA R05: Take the minimum between aeiw  and aeiv0 
    315319      IF( cp_cfg == "orca" .AND. jp_cfg == 05 ) THEN 
    316320         DO jj = 2, jpjm1 
Note: See TracChangeset for help on using the changeset viewer.