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/dyn3dpar/conf_gcm.F

    r1012 r1017  
    1919      USE infotrac, ONLY : type_trac
    2020      use assert_m, only: assert
     21      use sponge_mod_p, only: callsponge,mode_sponge,nsponge,tetasponge
    2122      IMPLICIT NONE
    2223c-----------------------------------------------------------------------
     
    388389       tau_top_bound=1.e-5
    389390       CALL getin('tau_top_bound',tau_top_bound)
     391
     392! the other possible sponge layer (sponge_mod)
     393       callsponge=.false. ! default value; don't use the sponge
     394       call getin("callsponge",callsponge)
     395       ! check that user is not trying to use both sponge models
     396       if ((iflag_top_bound.ge.1).and.callsponge) then
     397         write(lunout,*)'Bad choice of options:'
     398         write(lunout,*)' iflag_top_bound=',iflag_top_bound
     399         write(lunout,*)' and callsponge=.true.'
     400         write(lunout,*)'But both sponge models should not be',
     401     &                  ' used simultaneously!'
     402         stop
     403       endif
     404       
     405! nsponge: number of atmospheric layers over which the sponge extends
     406       nsponge=3 ! default value
     407       call getin("nsponge",nsponge)
     408
     409! mode_sponge: (quenching is towards ... over the upper nsponge layers)
     410!      0: (h=hmean,u=v=0)
     411!      1: (h=hmean,u=umean,v=0)
     412!      2: (h=hmean,u=umean,v=vmean)"
     413       mode_sponge=2 ! default value
     414       call getin("mode_sponge",mode_sponge)
     415
     416! tetasponge: characteristic time scale (seconds) at topmost layer
     417!            (time scale then doubles with decreasing layer index)."
     418       tetasponge=50000.0
     419       call getin("tetasponge",tetasponge)
    390420
    391421! FOR TITAN: tidal forces
Note: See TracChangeset for help on using the changeset viewer.