Ignore:
Timestamp:
Jun 27, 2015, 8:11:14 AM (9 years ago)
Author:
millour
Message:

Fixed call to iniphysiq from gcm and removed unused "pdayref" argument (day_ini is known from temps.h).
Removed "dtime" from phys_state_var_mod.F90; pdtphys (from time_phylmdz_mod) must be used instead.
With this revision seq and parallel MPI/OpenMP bench runs yield identical restart files.
EM

Location:
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/calcul_divers.h

    r3825 r3838  
    2020
    2121! Calcul fin de journee : total_rain, nday_rain
    22       IF(MOD(itap,NINT(un_jour/dtime)).EQ.0) THEN
     22      IF(MOD(itap,NINT(un_jour/pdtphys)).EQ.0) THEN
    2323!        print*,'calcul nday_rain itap ',itap
    2424         DO i = 1, klon
     
    2929
    3030! Initialisation fin de mois
    31       IF(MOD(itap-itapm1,NINT(mth_len*un_jour/dtime)).EQ.0) THEN
    32         itapm1=itapm1+NINT(mth_len*un_jour/dtime)
     31      IF(MOD(itap-itapm1,NINT(mth_len*un_jour/pdtphys)).EQ.0) THEN
     32        itapm1=itapm1+NINT(mth_len*un_jour/pdtphys)
    3333!       print*,'initialisation itapm1 ',itapm1
    3434      ENDIF
     
    4141     t2m_max_mon=0.
    4242  ENDIF
    43   IF(MOD(itap,NINT(un_jour/dtime)).EQ.1) THEN
     43  IF(MOD(itap,NINT(un_jour/pdtphys)).EQ.1) THEN
    4444     zt2m_min_mon=zt2m
    4545     zt2m_max_mon=zt2m
     
    5151     ENDDO
    5252!fin de journee
    53   IF(MOD(itap,NINT(un_jour/dtime)).EQ.0) THEN
     53  IF(MOD(itap,NINT(un_jour/pdtphys)).EQ.0) THEN
    5454   t2m_min_mon=t2m_min_mon+zt2m_min_mon
    5555   t2m_max_mon=t2m_max_mon+zt2m_max_mon
  • dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/ini_histday_seri.h

    r3825 r3838  
    77      IF (type_run.EQ."AMIP") THEN
    88!
    9        zstophy = dtime
     9       zstophy = pdtphys
    1010       zout = ecrit_day
    1111!
     
    3131                       nbp_lon,zx_lon(:,1), jjmp1,zx_lat(1,:), &
    3232                       imin_debut,nbpti,jmin_debut,nbptj, &
    33                        itau_phy, zjulian, dtime, &
     33                       itau_phy, zjulian, pdtphys, &
    3434                       nhori, nid_day_seri)
    3535!
  • dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/ini_paramLMDZ_phy.h

    r3825 r3838  
    99      if (is_mpi_root) then
    1010!
    11        zstophy = dtime
     11       zstophy = pdtphys
    1212       zout = mth_len*un_jour
    1313!
     
    2727                       np,zx_lon(np:np,1), np,zx_lat(1,np:np), &
    2828                       1,1,1,1, &
    29                        itau_phy, zjulian, dtime, &
     29                       itau_phy, zjulian, pdtphys, &
    3030                       nhori, nid_ctesGCM)
    3131!
  • dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/ini_undefSTD.F90

    r3809 r3838  
    77  USE phys_state_var_mod ! Variables sauvegardees de la physique
    88  USE phys_cal_mod, ONLY: mth_len
     9  USE time_phylmdz_mod, ONLY: pdtphys
    910  IMPLICIT NONE
    1011  include "clesphys.h"
     
    5859
    5960    IF (n==1 .AND. itap-itapm1==1 .OR. n>1 .AND. mod(itap,nint( &
    60         freq_outnmc(n)/dtime))==1) THEN
     61        freq_outnmc(n)/pdtphys))==1) THEN
    6162      ! print*,'ini_undefSTD n itap',n,itap
    6263      DO k = 1, nlevstd
  • dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/moy_undefSTD.F90

    r3809 r3838  
    77  USE phys_state_var_mod
    88  USE phys_cal_mod, ONLY: mth_len
     9  USE time_phylmdz_mod, ONLY: pdtphys
    910  IMPLICIT NONE
    1011  include "clesphys.h"
     
    6768
    6869    IF (n==1 .AND. itap==itapm1 .OR. n>1 .AND. mod(itap,nint(freq_outnmc(n)/ &
    69         dtime))==0) THEN
     70        pdtphys))==0) THEN
    7071
    7172      ! print*,'moy_undefSTD n itap itapm1',n,itap,itapm1
     
    132133        END DO !i
    133134      END DO !k
    134     END IF !MOD(itap,NINT(freq_outNMC(n)/dtime)).EQ.0
     135    END IF !MOD(itap,NINT(freq_outNMC(n)/pdtphys)).EQ.0
    135136
    136137  END DO !n
  • dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/phyetat0.F90

    r3831 r3838  
    1010  USE surface_data,     ONLY : type_ocean, version_ocean
    1111  USE geometry_mod,         ONLY : lon_degrees, lat_degrees
    12   USE phys_state_var_mod, ONLY : ancien_ok, clwcon, detr_therm, dtime, &
     12  USE phys_state_var_mod, ONLY : ancien_ok, clwcon, detr_therm, &
    1313       qsol, fevap, z0m, z0h, agesno, &
    1414       du_gwd_rando, dv_gwd_rando, entr_therm, f0, fm_therm, &
     
    838838
    839839  IF ( type_ocean == 'slab' ) THEN
    840       CALL ocean_slab_init(dtime, pctsrf)
     840      CALL ocean_slab_init(pdtphys, pctsrf)
    841841      found=phyetat0_get(nslay,tslab,"tslab","tslab",0.)
    842842      IF (.NOT. found) THEN
     
    876876  ! Initialize module ocean_cpl_mod for the case of coupled ocean
    877877  IF ( type_ocean == 'couple' ) THEN
    878      CALL ocean_cpl_init(dtime, lon_degrees, lat_degrees)
     878     CALL ocean_cpl_init(pdtphys, lon_degrees, lat_degrees)
    879879  ENDIF
    880880
  • dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/phyredem.F90

    r3831 r3838  
    1818  USE surface_data
    1919  USE ocean_slab_mod, ONLY : tslab, seaice, tice, fsic
    20   USE time_phylmdz_mod, ONLY: annee_ref, day_end, itau_phy
     20  USE time_phylmdz_mod, ONLY: annee_ref, day_end, itau_phy, pdtphys
    2121
    2222  IMPLICIT none
     
    6969     tab_cntrl(ierr) = 0.0
    7070  ENDDO
    71   tab_cntrl(1) = dtime
     71  tab_cntrl(1) = pdtphys
    7272  tab_cntrl(2) = radpas
    7373  ! co2_ppm : current value of atmospheric CO2
  • dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/phys_state_var_mod.F90

    r3825 r3838  
    1717      INTEGER, SAVE :: radpas
    1818!$OMP THREADPRIVATE(radpas)
    19       REAL, SAVE :: dtime, solaire_etat0
    20 !$OMP THREADPRIVATE(dtime, solaire_etat0)
     19      REAL, SAVE :: solaire_etat0
     20!$OMP THREADPRIVATE(solaire_etat0)
    2121
    2222      REAL, ALLOCATABLE, SAVE ::  pctsrf(:,:)
  • dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/undefSTD.F90

    r3818 r3838  
    66  USE dimphy
    77  USE phys_state_var_mod ! Variables sauvegardees de la physique
     8  USE time_phylmdz_mod, ONLY: pdtphys
    89  IMPLICIT NONE
    910  include "clesphys.h"
     
    5758
    5859
    59     ! calcul variables tous les freq_calNMC(n)/dtime pas de temps
     60    ! calcul variables tous les freq_calNMC(n)/pdtphys pas de temps
    6061    ! de la physique
    6162
    62     IF (mod(itap,nint(freq_calnmc(n)/dtime))==0) THEN
     63    IF (mod(itap,nint(freq_calnmc(n)/pdtphys))==0) THEN
    6364      DO k = 1, nlevstd
    6465        DO i = 1, klon
     
    9394      END DO !k
    9495
    95     END IF !MOD(itap,NINT(freq_calNMC(n)/dtime)).EQ.0
     96    END IF !MOD(itap,NINT(freq_calNMC(n)/pdtphys)).EQ.0
    9697
    9798  END DO !n
Note: See TracChangeset for help on using the changeset viewer.