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 3625 for branches/2012/dev_NOC_2012_rev3555/NEMOGCM/NEMO/TOP_SRC/TRP – NEMO

Ignore:
Timestamp:
2012-11-21T14:19:18+01:00 (12 years ago)
Author:
acc
Message:

Branch dev_NOC_2012_r3555. #1006. Step 7. Check in code now merged with dev_r3385_NOCS04_HAMF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_NOC_2012_rev3555/NEMOGCM/NEMO/TOP_SRC/TRP/trcsbc.F90

    r3294 r3625  
    6363      REAL(wp) ::   zsrau, zse3t   ! temporary scalars 
    6464      CHARACTER (len=22) :: charout 
    65       REAL(wp), POINTER, DIMENSION(:,:  ) :: zemps 
     65      REAL(wp), POINTER, DIMENSION(:,:  ) :: zsfx 
    6666      REAL(wp), POINTER, DIMENSION(:,:,:) :: ztrtrd 
    6767      !!--------------------------------------------------------------------- 
     
    7070      ! 
    7171      ! Allocate temporary workspace 
    72                       CALL wrk_alloc( jpi, jpj,      zemps  ) 
     72                      CALL wrk_alloc( jpi, jpj,      zsfx   ) 
    7373      IF( l_trdtrc )  CALL wrk_alloc( jpi, jpj, jpk, ztrtrd ) 
    7474 
     
    8080 
    8181 
    82       IF( lk_offline ) THEN          ! emps in dynamical files contains emps - rnf 
    83          zemps(:,:) = emps(:,:)   
     82      IF( lk_offline ) THEN          ! sfx in dynamical files contains sfx - rnf 
     83         zsfx(:,:) = sfx(:,:)   
    8484      ELSE                           ! Concentration dilution effect on tracer due to evaporation, precipitation, and river runoff 
    8585         IF( lk_vvl ) THEN                      ! volume variable 
    86             zemps(:,:) = emps(:,:) - emp(:,:)    
    87 !!ch         zemps(:,:) = 0. 
     86            zsfx(:,:) = sfx(:,:) - emp(:,:)    
     87!!ch         zsfx(:,:) = 0. 
    8888         ELSE                                   ! linear free surface 
    89             IF( ln_rnf ) THEN  ;  zemps(:,:) = emps(:,:) - rnf(:,:)   !  E-P-R 
    90             ELSE               ;  zemps(:,:) = emps(:,:) 
     89            IF( ln_rnf ) THEN  ;  zsfx(:,:) = sfx(:,:) - rnf(:,:)   !  E-P-R 
     90            ELSE               ;  zsfx(:,:) = sfx(:,:) 
    9191            ENDIF  
    9292         ENDIF  
     
    102102            DO ji = fs_2, fs_jpim1   ! vector opt. 
    103103               zse3t = 1. / fse3t(ji,jj,1) 
    104                tra(ji,jj,1,jn) = tra(ji,jj,1,jn) + zemps(ji,jj) *  zsrau * trn(ji,jj,1,jn) * zse3t 
     104               tra(ji,jj,1,jn) = tra(ji,jj,1,jn) + zsfx(ji,jj) *  zsrau * trn(ji,jj,1,jn) * zse3t 
    105105            END DO 
    106106         END DO 
     
    117117                                           CALL prt_ctl_trc( tab4d=tra, mask=tmask, clinfo=ctrcnm, clinfo2='trd' ) 
    118118      ENDIF 
    119                       CALL wrk_dealloc( jpi, jpj,      zemps  ) 
     119                      CALL wrk_dealloc( jpi, jpj,      zsfx   ) 
    120120      IF( l_trdtrc )  CALL wrk_dealloc( jpi, jpj, jpk, ztrtrd ) 
    121121      ! 
Note: See TracChangeset for help on using the changeset viewer.