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

Changeset 1494 for trunk/NEMO


Ignore:
Timestamp:
2009-07-20T11:27:56+02:00 (15 years ago)
Author:
ctlod
Message:

move the computation of zsrp=deds/rday term out of a loop, see ticket: #406

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/SBC/sbcssr.F90

    r1482 r1494  
    164164            ! 
    165165            IF( nn_sssr == 1 ) THEN                   ! Salinity damping term (salt flux, emps only) 
     166               zsrp = deds / rday                                     ! from [mm/day] to [kg/m2/s] 
    166167!CDIR COLLAPSE 
    167168               ! use zerp scalar to optimize memory access (speedup the loop) 
    168169               DO jj = 1, jpj 
    169170                  DO ji = 1, jpi 
    170                      zsrp = deds / rday                               ! from [mm/day] to [kg/m2/s] 
    171171                     zerp = zsrp * ( 1. - 2.*rnfmsk(ji,jj) )   &      ! No damping in vicinity of river mouths 
    172172                        &        * ( sss_m(ji,jj) - sf_sss(1)%fnow(ji,jj) )   & 
     
    178178               CALL iom_put( "erp", erp )                             ! freshwater flux damping 
    179179            ELSEIF( nn_sssr == 2 ) THEN               ! Salinity damping term (volume flux, emp and emps) 
     180               zsrp = deds / rday                                     ! from [mm/day] to [kg/m2/s] 
    180181!CDIR COLLAPSE 
    181182               ! use zerp scalar to optimize memory access (speedup the loop) 
    182183               DO jj = 1, jpj 
    183184                  DO ji = 1, jpi                             
    184                      zsrp = deds / rday                               ! from [mm/day] to [kg/m2/s] 
    185185                     zerp = zsrp * ( 1. - 2.*rnfmsk(ji,jj) )   &      ! No damping in vicinity of river mouths 
    186186                        &        * ( sss_m(ji,jj) - sf_sss(1)%fnow(ji,jj) )   & 
Note: See TracChangeset for help on using the changeset viewer.