Changeset 137 in lmdz_wrf


Ignore:
Timestamp:
Jul 29, 2014, 11:34:22 AM (10 years ago)
Author:
lfita
Message:

Removing checks for NaNs?, but keeping initialization of variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/LMDZ_WRFmeas/WRFV3/lmdz/calltherm.F90

    r96 r137  
    121121!$OMP THREADPRIVATE(first)
    122122!********************************************************
    123 
    124 ! Lluis
    125       INTEGER                                            :: llp
    126       CHARACTER(LEN=50)                                  :: lvarname, lfname
    127       REAL                                               :: largest
    128 
    129       llp = 734
    130       lfname = 'physiq'
    131       largest = 10.e5
    132123      if (first) then
    133124        itap=0
     
    143134      Ale = 0.
    144135
    145       PRINT *,'  Lluis SUm(Alp): ', SUM(Alp),' SUM Ale: ',SUM(Ale)
    146       IF (SUM(Alp) /= 0.) STOP
    147       IF (SUM(Ale) /= 0.) STOP
    148 
    149136! Incrementer le compteur de la physique
    150137     itap   = itap + 1
     
    153140!  ===================
    154141!         print*,'thermiques: WARNING on passe t au lieu de t_seri'
    155 
    156       lfname='beginning calltherm'
    157       lvarname = 't_seri'
    158       CALL check_var3D(lfname, lvarname, t_seri, klon, klev, largest, .FALSE.)
    159142
    160143! On prend comme valeur initiale des thermiques la valeur du pas
     
    194177         enddo
    195178         if(nbptspb.GT.0) print*,'Number of points with q_seri(i,k)<=0 ',nbptspb   
    196       lfname='calltherm before thermcell_main'
    197       lvarname = 't_seri'
    198       CALL check_var3D(lfname, lvarname, t_seri, klon, klev, largest, .FALSE.)
    199       lvarname = 'd_t_the'
    200       CALL check_var3D(lfname, lvarname, d_t_the, klon, klev, largest, .FALSE.)
    201       lvarname = 'Alp'
    202       CALL check_var(lfname, lvarname, Alp, klon, largest*10.e5, .FALSE.)
    203       lvarname = 'Ale'
    204       CALL check_var(lfname, lvarname, Ale, klon, largest*10.e5, .FALSE.)
    205179
    206180         zdt=dtime/REAL(nsplit_thermals)
     
    304278! Ce serait bien de changer, mai en prenant le temps de vérifier que ca
    305279! fait bien ce qu'on croit.
    306       lfname='calltherm after thermcell_main'
    307       lvarname = 't_seri'
    308       CALL check_var3D(lfname, lvarname, t_seri, klon, klev, largest, .FALSE.)
    309       lvarname = 'd_t_the'
    310       CALL check_var3D(lfname, lvarname, d_t_the, klon, klev, largest, .FALSE.)
    311       lvarname = 'Alp'
    312       CALL check_var(lfname, lvarname, Alp, klon, largest*10.e5, .FALSE.)
    313       lvarname = 'Ale'
    314       CALL check_var(lfname, lvarname, Ale, klon, largest*10.e5, .FALSE.)
    315 
    316280       flag_bidouille_stratocu=iflag_thermals<=12.or.iflag_thermals==14.or.iflag_thermals==16.or.iflag_thermals==18
    317281
     
    344308       fm_therm(:,klev+1)=0.
    345309
    346       lfname='calltherm after transforming from derivate to tendency'
    347       lvarname = 't_seri'
    348       CALL check_var3D(lfname, lvarname, t_seri, klon, klev, largest, .FALSE.)
    349       lvarname = 'd_t_the'
    350       CALL check_var3D(lfname, lvarname, d_t_the, klon, klev, largest, .FALSE.)
    351 
    352 
    353310!  accumulation de la tendance
    354311            d_t_ajs(:,:)=d_t_ajs(:,:)+d_t_the(:,:)
     
    364321            q_seri(:,:) = q_seri(:,:) + d_q_the(:,:)
    365322           if (prt_level.gt.10) write(lunout,*)'Apres apres thermcell_main OK'
    366       lfname='calltherm after add tendencies'
    367       lvarname = 't_seri'
    368       CALL check_var3D(lfname, lvarname, t_seri, klon, klev, largest, .FALSE.)
    369       lvarname = 'd_t_the'
    370       CALL check_var3D(lfname, lvarname, d_t_the, klon, klev, largest, .FALSE.)
    371       lvarname = 'Alp_bl'
    372       CALL check_var(lfname, lvarname, Alp_bl, klon, largest, .FALSE.)
    373       lvarname = 'Alp'
    374       CALL check_var(lfname, lvarname, Alp, klon, largest*10.e5, .FALSE.)
    375       lvarname = 'Ale_bl'
    376       CALL check_var(lfname, lvarname, Ale_bl, klon, largest, .FALSE.)
    377       lvarname = 'Ale'
    378       CALL check_var(lfname, lvarname, Ale, klon, largest*10.e5, .FALSE.)
    379323
    380324       DO i=1,klon
     
    386330        if(prt_level.GE.10) print*,'calltherm i Alp_bl Alp Ale_bl Ale',i,Alp_bl(i),Alp(i),Ale_bl(i),Ale(i)
    387331       ENDDO
    388       lfname='calltherm after computing Al[p/e]_bl'
    389       lvarname = 't_seri'
    390       CALL check_var3D(lfname, lvarname, t_seri, klon, klev, largest, .FALSE.)
    391       lvarname = 'd_t_the'
    392       CALL check_var3D(lfname, lvarname, d_t_the, klon, klev, largest, .FALSE.)
    393       lvarname = 'Alp_bl'
    394       CALL check_var(lfname, lvarname, Alp_bl, klon, largest, .FALSE.)
    395       lvarname = 'Alp'
    396       CALL check_var(lfname, lvarname, Alp, klon, largest*10.e5, .FALSE.)
    397       lvarname = 'Ale_bl'
    398       CALL check_var(lfname, lvarname, Ale_bl, klon, largest, .FALSE.)
    399       lvarname = 'Ale'
    400       CALL check_var(lfname, lvarname, Ale, klon, largest*10.e5, .FALSE.)
    401332
    402333!IM 060508 marche pas comme cela !!!        enddo ! isplit
Note: See TracChangeset for help on using the changeset viewer.