Changeset 1749 for LMDZ5/trunk


Ignore:
Timestamp:
Apr 25, 2013, 4:07:07 PM (12 years ago)
Author:
Ehouarn Millour
Message:

Added handling of Newtonian (and Shallow Water) modes in dyn3dmem:

  • adapted calfis_loc.F and gcm.F
  • removed unused routines divgrad_p.F and gradiv_p.F
  • adapted iniacademic.F90 and sw_case_williamson.F to work in parallel and renamed them iniacademi_loc.F90 and sw_case_williamson_loc.F
  • fixed bug in exner_milieu_loc.F (filtreg_p form mod_filtreg_p should be used)

EM

Location:
LMDZ5/trunk/libf/dyn3dmem
Files:
2 added
4 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/dyn3dmem/calfis_loc.F

    r1676 r1749  
    3434      USE dimphy
    3535      USE mod_phys_lmdz_para, mpi_root_xx=>mpi_root
    36       USE parallel, ONLY : omp_chunk, using_mpi,jjb_u,jje_u,jjb_v,jje_v
    3736      USE mod_interface_dyn_phys
    3837      USE IOPHY
    3938#endif
     39      USE parallel, ONLY : omp_chunk, using_mpi,jjb_u,jje_u,jjb_v,jje_v
    4040      USE Write_Field
    4141      Use Write_field_p
     
    116116c    -----------
    117117      LOGICAL  lafin
    118       REAL heure
    119 
     118!      REAL heure
     119      REAL, intent(in):: jD_cur, jH_cur
    120120      REAL pvcov(iip1,jjb_v:jje_v,llm)
    121121      REAL pucov(iip1,jjb_u:jje_u,llm)
     
    130130      REAL pdteta(iip1,jjb_u:jje_u,llm)
    131131      REAL pdq(iip1,jjb_u:jje_u,llm,nqtot)
     132      REAL flxw(iip1,jjb_u:jje_u,llm)  ! Flux de masse verticale sur la grille dynamique
    132133c
    133134      REAL pps(iip1,jjb_u:jje_u)
     
    226227      REAL PVteta(klon,ntetaSTD)
    227228     
    228       REAL flxw(iip1,jjb_u:jje_u,llm)  ! Flux de masse verticale sur la grille dynamique
    229229     
    230230      REAL SSUM
     
    234234      SAVE firstcal,debut
    235235c$OMP THREADPRIVATE(firstcal,debut)
    236       REAL, intent(in):: jD_cur, jH_cur
    237236     
    238237      REAL,SAVE,dimension(1:iim,1:llm):: du_send,du_recv,dv_send,dv_recv
  • LMDZ5/trunk/libf/dyn3dmem/exner_milieu_loc.F

    r1673 r1749  
    2727c
    2828      USE parallel
     29      USE mod_filtreg_p
    2930      IMPLICIT NONE
    3031c
     
    120121        jjb=jj_begin
    121122        jje=jj_end
    122         CALL filtreg_p ( pkf,jjb,jje, jmp1, llm, 2, 1, .TRUE., 1 )
     123        CALL filtreg_p ( pkf,jjb_u,jje_u,jjb,jje, jmp1, llm,
     124     &                 2, 1, .TRUE., 1 )
    123125
    124126        ! our work is done, exit routine
     
    206208      jjb=jj_begin
    207209      jje=jj_end
    208       CALL filtreg_p ( pkf,jjb,jje, jmp1, llm, 2, 1, .TRUE., 1 )
     210      CALL filtreg_p ( pkf,jjb_u,jje_u,jjb,jje, jmp1, llm,
     211     &                 2, 1, .TRUE., 1 )
    209212     
    210213c    EST-CE UTILE ?? : calcul de beta
  • LMDZ5/trunk/libf/dyn3dmem/gcm.F

    r1699 r1749  
    270270      ! constants & fields, if we run the 'newtonian' or 'SW' cases:
    271271        if (iflag_phys.ne.1) then
    272           CALL iniacademic(vcov,ucov,teta,q,masse,ps,phis,time_0)
     272          CALL iniacademic_loc(vcov,ucov,teta,q,masse,ps,phis,time_0)
    273273        endif
    274274
     
    291291     .              'GCM: AVANT iniacademic AVANT AVANT AVANT AVANT'
    292292      if (.not.read_start) then
    293          CALL iniacademic(vcov,ucov,teta,q,masse,ps,phis,time_0)
     293         CALL iniacademic_loc(vcov,ucov,teta,q,masse,ps,phis,time_0)
    294294      endif
    295295
     
    398398#endif
    399399
    400 
     400      if (iflag_phys.eq.1) then
     401      ! these initialisations have already been done (via iniacademic)
     402      ! if running in SW or Newtonian mode
    401403c-----------------------------------------------------------------------
    402404c   Initialisation des constantes dynamiques :
     
    414416c   --------------------------
    415417        CALL inifilr
     418      endif ! of if (iflag_phys.eq.1)
    416419c
    417420c-----------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.