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 3327 for branches/2012/dev_r3309_LOCEAN12_Ediag/NEMOGCM/NEMO/OPA_SRC/TRD/trdpen.F90 – NEMO

Ignore:
Timestamp:
2012-03-14T16:09:33+01:00 (12 years ago)
Author:
gm
Message:

Ediag branche: #927 correct a few problems and clean trdtra

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_r3309_LOCEAN12_Ediag/NEMOGCM/NEMO/OPA_SRC/TRD/trdpen.F90

    r3326 r3327  
    7070      REAL(wp)                  , INTENT(in) ::   pdt            ! time step [s] 
    7171      ! 
     72      INTEGER ::   jk   ! dummy loop indices 
    7273      REAL(wp), POINTER, DIMENSION(:,:)   ::   z2d   ! 2D workspace  
    7374      REAL(wp), POINTER, DIMENSION(:,:,:) ::   zpe   ! 3D workspace  
     
    8788 
    8889      SELECT CASE ( ktrd ) 
    89       CASE ( jptra_xad  )   ;   CALL iom_put( "petrd_xad", zke )   ! zonal    advection 
    90       CASE ( jptra_yad  )   ;   CALL iom_put( "petrd_yad", zke )   ! merid.   advection 
    91       CASE ( jptra_zad  )   ;   CALL iom_put( "petrd_zad", zke )   ! vertical advection 
     90      CASE ( jptra_xad  )   ;   CALL iom_put( "petrd_xad", zpe )   ! zonal    advection 
     91      CASE ( jptra_yad  )   ;   CALL iom_put( "petrd_yad", zpe )   ! merid.   advection 
     92      CASE ( jptra_zad  )   ;   CALL iom_put( "petrd_zad", zpe )   ! vertical advection 
    9293                                IF( .NOT.lk_vvl ) THEN                   ! cst volume : adv flux through z=0 surface 
    9394                                   CALL wrk_alloc( jpi, jpj, z2d ) 
    94                                    z2d(:,:) = wn(:,:,1) * (   drau_dt(:,:,1) * tsn(:,:,1,jp_tem)  
     95                                   z2d(:,:) = wn(:,:,1) * (   drau_dt(:,:,1) * tsn(:,:,1,jp_tem)    & 
    9596                                      &                     + drau_ds(:,:,1) * tsn(:,:,1,jp_sal)  ) / fse3t(:,:,1) 
    9697                                   CALL iom_put( "petrd_sad" , z2d ) 
     
    104105      CASE ( jptra_npc  )   ;   CALL iom_put( "petrd_npc" , zpe )   ! non penetr convect adjustment 
    105106      CASE ( jptra_nsr  )   ;   CALL iom_put( "petrd_for" , zpe )   ! surface forcing + runoff (ln_rnf=T) 
    106       CASE ( jptra_qsr  )   ;   CALL iom_put( "petrd_qsr" , zke )   ! air-sea : penetrative sol radiat 
    107       CASE ( jptra_bbc  )   ;   CALL iom_put( "petrd_bbc", zke )   ! bottom bound cond (geoth flux) 
    108       CASE ( jptra_atf  )   ;   CALL iom_put( "petrd_atf", zke )   ! asselin time filter (last trend) 
     107      CASE ( jptra_qsr  )   ;   CALL iom_put( "petrd_qsr" , zpe )   ! air-sea : penetrative sol radiat 
     108      CASE ( jptra_bbc  )   ;   CALL iom_put( "petrd_bbc" , zpe )   ! bottom bound cond (geoth flux) 
     109      CASE ( jptra_atf  )   ;   CALL iom_put( "petrd_atf" , zpe )   ! asselin time filter (last trend) 
    109110                                IF( .NOT.lk_vvl ) THEN                   ! cst volume : ssh term (otherwise include in e3t variation) 
    110111                                   CALL wrk_alloc( jpi, jpj, z2d ) 
    111                                    z2d(:,:) = ( ssha(:,:) - sshb(:,:) )   & 
    112                                       &     * (   drau_dt(:,:,1) * tsn(:,:,1,jp_tem)  
     112                                   z2d(:,:) = ( ssha(:,:) - sshb(:,:) )                 & 
     113                                      &     * (   drau_dt(:,:,1) * tsn(:,:,1,jp_tem)    & 
    113114                                      &         + drau_ds(:,:,1) * tsn(:,:,1,jp_sal)  ) / ( fse3t(:,:,1) * pdt ) 
    114115                                   CALL iom_put( "petrd_sad" , z2d ) 
     
    141142      IF ( lk_vvl               )   CALL ctl_stop('trd_pen_init : PE trends not coded for variable volume') 
    142143      ! 
    143       r1_2_rau0 = 0.5_wp / rau0 
    144       ! 
    145144   END SUBROUTINE trd_pen_init 
    146145 
    147146   !!====================================================================== 
    148 END MODULE trdtra 
     147END MODULE trdpen 
Note: See TracChangeset for help on using the changeset viewer.