Ignore:
Timestamp:
Aug 22, 2013, 4:02:07 PM (11 years ago)
Author:
emillour
Message:

Common dynamics: (and collateral adaptations in Venus physics)
Improved cpdet routines in and additional sponge mode:

  • Additionnal sponge mode (trigered with "callsponge" flag), in line with the one used in the Generic and Martian GCM. This sponge is called whenever there is a dissipation step.
  • Improvement of the cpdet routines : created routines tpot2t_glo_p and t2tpot_glo_p which handle fields on the whole dynamics (scaler) grid, which are more efficient than calling tpot2t_p or t2tpot_p with slabs of data (generated use of intermediate copies of these chunks of data at every call)
  • Turned cpdet.F into a module cpdet_mod.F90 (and correspondingly adapted all routines in the Venus physics).

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/dyn3d/conf_gcm.F

    r1012 r1017  
    1515      USE infotrac, ONLY : type_trac
    1616      use assert_m, only: assert
     17      use sponge_mod, only: callsponge,mode_sponge,nsponge,tetasponge
    1718
    1819      IMPLICIT NONE
     
    361362       tau_top_bound=1.e-5
    362363       CALL getin('tau_top_bound',tau_top_bound)
     364
     365! the other possible sponge layer (sponge_mod)
     366       callsponge=.false. ! default value; don't use the sponge
     367       call getin("callsponge",callsponge)
     368       ! check that user is not trying to use both sponge models
     369       if ((iflag_top_bound.ge.1).and.callsponge) then
     370         write(lunout,*)'Bad choice of options:'
     371         write(lunout,*)' iflag_top_bound=',iflag_top_bound
     372         write(lunout,*)' and callsponge=.true.'
     373         write(lunout,*)'But both sponge models should not be',
     374     &                  ' used simultaneously!'
     375         stop
     376       endif
     377       
     378! nsponge: number of atmospheric layers over which the sponge extends
     379       nsponge=3 ! default value
     380       call getin("nsponge",nsponge)
     381
     382! mode_sponge: (quenching is towards ... over the upper nsponge layers)
     383!      0: (h=hmean,u=v=0)
     384!      1: (h=hmean,u=umean,v=0)
     385!      2: (h=hmean,u=umean,v=vmean)"
     386       mode_sponge=2 ! default value
     387       call getin("mode_sponge",mode_sponge)
     388
     389! tetasponge: characteristic time scale (seconds) at topmost layer
     390!            (time scale then doubles with decreasing layer index)."
     391       tetasponge=50000.0
     392       call getin("tetasponge",tetasponge)
    363393
    364394! FOR TITAN: tidal forces
Note: See TracChangeset for help on using the changeset viewer.