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 6101 for branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/OPA_SRC/TRA/traadv_tvd_crs.F90 – NEMO

Ignore:
Timestamp:
2015-12-17T16:48:41+01:00 (8 years ago)
Author:
cbricaud
Message:

correction of bugs from last update and improvments for CRS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/OPA_SRC/TRA/traadv_tvd_crs.F90

    r5601 r6101  
    178178         END IF 
    179179         !                                 ! "Poleward" heat and salt transports (contribution of upstream fluxes) 
    180          IF( cdtype == 'TRA' .AND. ln_diaptr .AND. ( MOD( kt, nn_fptr ) == 0 ) ) THEN   
    181            IF( jn == jp_tem )  htr_adv(:) = ptr_vj( zwy(:,:,:) ) 
    182            IF( jn == jp_sal )  str_adv(:) = ptr_vj( zwy(:,:,:) ) 
     180         IF( cdtype == 'TRA' .AND. ln_diaptr ) THEN   
     181           IF( jn == jp_tem )  htr_adv(:) = ptr_sj( zwy(:,:,:) ) 
     182           IF( jn == jp_sal )  str_adv(:) = ptr_sj( zwy(:,:,:) ) 
    183183         ENDIF 
    184184 
     
    240240         END IF 
    241241         !                                 ! "Poleward" heat and salt transports (contribution of upstream fluxes) 
    242          IF( cdtype == 'TRA' .AND. ln_diaptr .AND. ( MOD( kt, nn_fptr ) == 0 ) ) THEN   
    243            IF( jn == jp_tem )  htr_adv(:) = ptr_vj( zwy(:,:,:) ) + htr_adv(:) 
    244            IF( jn == jp_sal )  str_adv(:) = ptr_vj( zwy(:,:,:) ) + str_adv(:) 
     242         IF( cdtype == 'TRA' .AND. ln_diaptr ) THEN   
     243           IF( jn == jp_tem )  htr_adv(:) = ptr_sj( zwy(:,:,:) ) + htr_adv(:) 
     244           IF( jn == jp_sal )  str_adv(:) = ptr_sj( zwy(:,:,:) ) + str_adv(:) 
    245245         ENDIF 
    246246         ! 
Note: See TracChangeset for help on using the changeset viewer.