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 14072 for NEMO/trunk/src/OCE/DYN/dynspg.F90 – NEMO

Ignore:
Timestamp:
2020-12-04T08:48:38+01:00 (3 years ago)
Author:
laurent
Message:

Merging branch "2020/dev_r13648_ASINTER-04_laurent_bulk_ice", ticket #2369

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/DYN/dynspg.F90

    r14064 r14072  
    1111 
    1212   !!---------------------------------------------------------------------- 
    13    !!   dyn_spg     : update the dynamics trend with surface pressure gradient  
     13   !!   dyn_spg     : update the dynamics trend with surface pressure gradient 
    1414   !!   dyn_spg_init: initialization, namelist read, and parameters control 
    1515   !!---------------------------------------------------------------------- 
     
    3939   PUBLIC   dyn_spg_init   ! routine called by opa module 
    4040 
    41    INTEGER ::   nspg = 0   ! type of surface pressure gradient scheme defined from lk_dynspg_...  
     41   INTEGER ::   nspg = 0   ! type of surface pressure gradient scheme defined from lk_dynspg_... 
    4242 
    4343   !                       ! Parameter to control the surface pressure gradient scheme 
     
    5252   !!---------------------------------------------------------------------- 
    5353   !! NEMO/OCE 4.0 , NEMO Consortium (2018) 
    54    !! $Id$  
     54   !! $Id$ 
    5555   !! Software governed by the CeCILL license (see ./LICENSE) 
    5656   !!---------------------------------------------------------------------- 
     
    6161      !!                  ***  ROUTINE dyn_spg  *** 
    6262      !! 
    63       !! ** Purpose :   compute surface pressure gradient including the  
     63      !! ** Purpose :   compute surface pressure gradient including the 
    6464      !!              atmospheric pressure forcing (ln_apr_dyn=T). 
    6565      !! 
     
    6868      !!              - split-explicit : a time splitting technique is used 
    6969      !! 
    70       !!              ln_apr_dyn=T : the atmospheric pressure forcing is applied  
     70      !!              ln_apr_dyn=T : the atmospheric pressure forcing is applied 
    7171      !!             as the gradient of the inverse barometer ssh: 
    7272      !!                apgu = - 1/rho0 di[apr] = 0.5*grav di[ssh_ib+ssh_ibb] 
     
    9090      ! 
    9191      IF( l_trddyn )   THEN                      ! temporary save of ta and sa trends 
    92          ALLOCATE( ztrdu(jpi,jpj,jpk) , ztrdv(jpi,jpj,jpk) )  
     92         ALLOCATE( ztrdu(jpi,jpj,jpk) , ztrdv(jpi,jpj,jpk) ) 
    9393         ztrdu(:,:,:) = puu(:,:,:,Krhs) 
    9494         ztrdv(:,:,:) = pvv(:,:,:,Krhs) 
     
    144144               zpgv(ji,jj) = zpgv(ji,jj) + ( zpice(ji,jj+1) - zpice(ji,jj) ) * r1_e2v(ji,jj) 
    145145            END_2D 
    146             DEALLOCATE( zpice )          
     146            DEALLOCATE( zpice ) 
    147147         ENDIF 
    148148         ! 
     
    160160         ! 
    161161!!gm add here a call to dyn_trd for ice pressure gradient, the surf pressure trends ???? 
    162          !     
     162         ! 
    163163      ENDIF 
    164164      ! 
     
    167167      CASE ( np_TS  )   ;   CALL dyn_spg_ts ( kt, Kbb, Kmm, Krhs, puu, pvv, pssh, puu_b, pvv_b, Kaa ) ! time-splitting 
    168168      END SELECT 
    169       !                     
     169      ! 
    170170      IF( l_trddyn )   THEN                  ! save the surface pressure gradient trends for further diagnostics 
    171171         ztrdu(:,:,:) = puu(:,:,:,Krhs) - ztrdu(:,:,:) 
    172172         ztrdv(:,:,:) = pvv(:,:,:,Krhs) - ztrdv(:,:,:) 
    173173         CALL trd_dyn( ztrdu, ztrdv, jpdyn_spg, kt, Kmm ) 
    174          DEALLOCATE( ztrdu , ztrdv )  
     174         DEALLOCATE( ztrdu , ztrdv ) 
    175175      ENDIF 
    176176      !                                      ! print mean trends (used for debugging) 
     
    186186      !!--------------------------------------------------------------------- 
    187187      !!                  ***  ROUTINE dyn_spg_init  *** 
    188       !!                 
    189       !! ** Purpose :   Control the consistency between namelist options for  
     188      !! 
     189      !! ** Purpose :   Control the consistency between namelist options for 
    190190      !!              surface pressure gradient schemes 
    191191      !!---------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.