Ignore:
Timestamp:
May 27, 2010, 8:51:35 AM (15 years ago)
Author:
Ehouarn Millour
Message:

Some minor fixes for the Newtonian and Shallow Water cases:
-Some initializations were done twice, causing problems with the FFT filter.
-Some CPP_EARTH preprocessing keys should in fact be CPP_IOIPSL.

Also added some useful debugging options to 'debug' mode in arch-PW6_VARGAS.fcm

EM

Location:
LMDZ4/branches/LMDZ4V5.0-dev/libf/dyn3dpar
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/branches/LMDZ4V5.0-dev/libf/dyn3dpar/calfis_p.F

    r1363 r1393  
    3434      USE dimphy
    3535      USE mod_phys_lmdz_para, mpi_root_xx=>mpi_root
     36      USE mod_interface_dyn_phys
     37      USE IOPHY
     38#endif
    3639      USE parallel, ONLY : omp_chunk, using_mpi
    37       USE mod_interface_dyn_phys
    3840      USE Write_Field
    3941      Use Write_field_p
    4042      USE Times
    41       USE IOPHY
    4243      USE infotrac
    4344      USE control_mod
     
    115116c    -----------
    116117      LOGICAL  lafin
    117       REAL heure
    118 
     118!      REAL heure
     119      REAL, intent(in):: jD_cur, jH_cur
    119120      REAL pvcov(iip1,jjm,llm)
    120121      REAL pucov(iip1,jjp1,llm)
     
    129130      REAL pdteta(iip1,jjp1,llm)
    130131      REAL pdq(iip1,jjp1,llm,nqtot)
     132      REAL flxw(iip1,jjp1,llm)  ! Flux de masse verticale sur la grille dynamique
    131133c
    132134      REAL pps(iip1,jjp1)
     
    144146      REAL clesphy0( longcles )
    145147
    146 
     148#ifdef CPP_EARTH
    147149c    Local variables :
    148150c    -----------------
     
    223225      REAL PVteta(klon,ntetaSTD)
    224226     
    225       REAL flxw(iip1,jjp1,llm)  ! Flux de masse verticale sur la grille dynamique
    226227     
    227228      REAL SSUM
     
    231232      SAVE firstcal,debut
    232233c$OMP THREADPRIVATE(firstcal,debut)
    233       REAL, intent(in):: jD_cur, jH_cur
    234234     
    235235      REAL,SAVE,dimension(1:iim,1:llm):: du_send,du_recv,dv_send,dv_recv
  • LMDZ4/branches/LMDZ4V5.0-dev/libf/dyn3dpar/fluxstokenc_p.F

    r1299 r1393  
    44      SUBROUTINE fluxstokenc_p(pbaru,pbarv,masse,teta,phi,phis,
    55     . time_step,itau )
    6 #ifdef CPP_EARTH
    7 ! This routine is designed to work for Earth and with ioipsl
     6#ifdef CPP_IOIPSL
     7! This routine is designed to work with ioipsl
    88
    99       USE IOIPSL
     
    202202     
    203203         iadvtr=0
    204         Print*,'ITAU auqel on stoke les fluxmasses',itau
     204        write(lunout,*)'ITAU auquel on stoke les fluxmasses',itau
    205205       
    206206        ijb=ij_begin
     
    244244#else
    245245      write(lunout,*)
    246      & 'fluxstokenc: Needs Earth physics (and ioipsl) to function'
     246     & 'fluxstokenc: Needs IOIPSL to function'
    247247#endif
    248 ! of #ifdef CPP_EARTH
     248! of #ifdef CPP_IOIPSL
    249249      RETURN
    250250      END
  • LMDZ4/branches/LMDZ4V5.0-dev/libf/dyn3dpar/gcm.F

    r1384 r1393  
    401401      nbetatmoy = nday / periodav + 1
    402402
     403      if (iflag_phys.eq.1) then
     404      ! these initialisations have already been done (via iniacademic)
     405      ! if running in SW or Newtonian mode
    403406c-----------------------------------------------------------------------
    404407c   Initialisation des constantes dynamiques :
    405408c   ------------------------------------------
    406       dtvr = zdtvr
    407       CALL iniconst
     409        dtvr = zdtvr
     410        CALL iniconst
    408411
    409412c-----------------------------------------------------------------------
    410413c   Initialisation de la geometrie :
    411414c   --------------------------------
    412       CALL inigeom
     415        CALL inigeom
    413416
    414417c-----------------------------------------------------------------------
    415418c   Initialisation du filtre :
    416419c   --------------------------
    417       CALL inifilr
     420        CALL inifilr
     421      endif ! of if (iflag_phys.eq.1)
    418422c
    419423c-----------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.