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 3317 for branches/2012/dev_r3309_LOCEAN12_Ediag/NEMOGCM/NEMO/OPA_SRC/TRA/trasbc.F90 – NEMO

Ignore:
Timestamp:
2012-02-23T12:21:08+01:00 (12 years ago)
Author:
gm
Message:

Ediag branche: #927 restructuration of the trdicp computation - part I

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_r3309_LOCEAN12_Ediag/NEMOGCM/NEMO/OPA_SRC/TRA/trasbc.F90

    r3294 r3317  
    104104      !! ** Action  : - Update the 1st level of (ta,sa) with the trend associated 
    105105      !!                with the tracer surface boundary condition  
    106       !!              - save the trend it in ttrd ('key_trdtra') 
     106      !!              - send trends to trdtra module (l_trdtra=T) 
    107107      !!---------------------------------------------------------------------- 
    108108      INTEGER, INTENT(in) ::   kt   ! ocean time-step index 
     
    123123      zsrau = 1. / rau0             ! initialization 
    124124 
    125       IF( l_trdtra )   THEN                    !* Save ta and sa trends 
     125      IF( l_trdtra ) THEN                    !* Save ta and sa trends 
    126126         CALL wrk_alloc( jpi, jpj, jpk, ztrdt, ztrds )  
    127127         ztrdt(:,:,:) = tsa(:,:,:,jp_tem) 
     
    145145              & iom_varid( numror, 'sbc_hc_b', ldstop = .FALSE. ) > 0 ) THEN 
    146146            IF(lwp) WRITE(numout,*) '          nit000-1 surface tracer content forcing fields red in the restart file' 
    147             zfact = 0.5e0 
     147            zfact = 0.5_wp 
    148148            CALL iom_get( numror, jpdom_autoglo, 'sbc_hc_b', sbc_tsc_b(:,:,jp_tem) )   ! before heat content sbc trend 
    149149            CALL iom_get( numror, jpdom_autoglo, 'sbc_sc_b', sbc_tsc_b(:,:,jp_sal) )   ! before salt content sbc trend 
    150150         ELSE                                         ! No restart or restart not found: Euler forward time stepping 
    151             zfact = 1.e0 
     151            zfact = 1._wp 
    152152            sbc_tsc_b(:,:,:) = 0.e0 
    153153         ENDIF 
    154154      ELSE                                         ! Swap of forcing fields 
    155155         !                                         ! ---------------------- 
    156          zfact = 0.5e0 
     156         zfact = 0.5_wp 
    157157         sbc_tsc_b(:,:,:) = sbc_tsc(:,:,:) 
    158158      ENDIF 
     
    206206      !---------------------------------------- 
    207207      ! 
    208       zfact = 0.5e0 
    209208 
    210209      ! Effect on (t,s) due to river runoff (dilution effect automatically applied via vertical tracer advection)  
    211210      IF( ln_rnf ) THEN   
     211         zfact = 0.5_wp 
    212212         DO jj = 2, jpj  
    213213            DO ji = fs_2, fs_jpim1 
    214                zdep = 1. / h_rnf(ji,jj) 
    215                zdep = zfact * zdep   
     214               zdep = zfact / h_rnf(ji,jj) 
    216215               IF ( rnf(ji,jj) /= 0._wp ) THEN 
    217216                  DO jk = 1, nk_rnf(ji,jj) 
     
    225224         END DO   
    226225      ENDIF   
    227 !!gm  It should be useless 
     226!!gm  It should be useless  ==>> to be suppressed ! 
    228227      CALL lbc_lnk( tsa(:,:,:,jp_tem), 'T', 1. )    ;    CALL lbc_lnk( tsa(:,:,:,jp_sal), 'T', 1. ) 
     228!!gm : end of useless 
    229229 
    230230      IF( l_trdtra )   THEN                      ! save the horizontal diffusive trends for further diagnostics 
Note: See TracChangeset for help on using the changeset viewer.