Changeset 135 in lmdz_wrf


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

Removing checks for NaNs?...

File:
1 edited

Legend:

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

    r116 r135  
    5555      character (len=80) :: abort_message
    5656
    57 ! Lluis
    58       INTEGER                                            :: llp
    59       CHARACTER(LEN=50)                                  :: lvarname, lfname
    60       REAL                                               :: largest
    61       CHARACTER(LEN=4)                                   :: lS
    62 
    63       llp = 734
    64       lfname = 'physiq'
    65       largest = 10.e5
    66 
    6757      fomass_max=0.5
    6858      alphamax=0.7
     
    126116      endif
    127117
    128       lfname='thermcell_flux2 computing entr/detr_star'
    129       lvarname = 'entr_star'
    130       CALL check_var3D(lfname, lvarname, entr_star, ngrid, klev, largest, .FALSE.)
    131       lvarname = 'detr_star'
    132       CALL check_var3D(lfname, lvarname, detr_star, ngrid, klev, largest, .FALSE.)
    133       lvarname = 'alim_star'
    134       CALL check_var3D(lfname, lvarname, alim_star, ngrid, klev, largest, .FALSE.)
    135 
    136118!-------------------------------------------------------------------------
    137119! Multiplication par le flux de masse issu de la femreture
     
    168150      enddo
    169151
    170       lfname='thermcell_flux2 first compute of fm'
    171       lvarname = 'entr'
    172       CALL check_var3D(lfname, lvarname, entr, ngrid, klev, largest, .FALSE.)
    173       lvarname = 'detr'
    174       CALL check_var3D(lfname, lvarname, detr, ngrid, klev, largest, .FALSE.)
    175       lvarname = 'fm'
    176       CALL check_var3D(lfname, lvarname, fm, ngrid, klev, largest, .FALSE.)
    177 
    178 
    179152! Test provisoire : pour comprendre pourquoi on corrige plein de fois
    180153! le cas fm6, on commence par regarder une premiere fois avant les
     
    204177! les flux avant et apres modif
    205178!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    206       lfname='thermcell_flux2 before first loop'
    207       lvarname = 'fm'
    208       CALL check_var3D(lfname, lvarname, fm, ngrid, klev+1, largest, .FALSE.)
    209       lvarname = 'entr'
    210       CALL check_var3D(lfname, lvarname, entr, ngrid, klev, largest, .FALSE.)
    211       lvarname = 'detr'
    212       CALL check_var3D(lfname, lvarname, detr, ngrid, klev, largest, .FALSE.)
    213179
    214180      do l=1,klev
     
    225191         enddo
    226192
    227       lfname='thermcell_flux2 after first loop ' // lS
    228       lvarname = 'fm'
    229       CALL check_var(lfname, lvarname, fm(:,l), ngrid, largest, .FALSE.)
    230       lvarname = 'entr'
    231       CALL check_var(lfname, lvarname, entr(:,l), ngrid, largest, .FALSE.)
    232       lvarname = 'detr'
    233       CALL check_var(lfname, lvarname, detr(:,l), ngrid, largest, .FALSE.)
    234 
    235193!-------------------------------------------------------------------------
    236194! Verification de la positivite des flux de masse
     
    263221             zzz=fm(ig,l)*rhobarz(ig,l+1)*zw2(ig,l+1)  &
    264222     &                          /(rhobarz(ig,l)*zw2(ig,l))
    265              IF (zzz /= zzz .OR. zw2(ig,l) == 0. ) THEN
    266                PRINT *,'  Lluis ', ig,',',l,' wrong zzz: ',zzz,' zw2: ',zw2(ig,l),' fm: ',fm(ig,l)
    267              END IF
    268223             if (fm(ig,l+1).gt.zzz) then
    269224                detr(ig,l)=detr(ig,l)+fm(ig,l+1)-zzz
     
    276231      endif
    277232
    278       lfname='thermcell_flux2 after fraca croissant ' //lS
    279       lvarname = 'fm'
    280       CALL check_var(lfname, lvarname, fm(:,l), ngrid, largest, .FALSE.)
    281 !      lvarname = '1/zw2'
    282 !      CALL check_var(lfname, lvarname, 1./zw2(:,l), ngrid, largest, .FALSE.)
    283 !      lvarname = '1/rhobarz'
    284 !      CALL check_var(lfname, lvarname, 1./rhobarz(:,l), ngrid, largest, .FALSE.)
    285       lvarname = 'entr'
    286       CALL check_var(lfname, lvarname, entr(:,l), ngrid, largest, .FALSE.)
    287       lvarname = 'detr'
    288       CALL check_var(lfname, lvarname, detr(:,l), ngrid, largest, .FALSE.)
    289 
    290233      if (prt_level.ge.10) &
    291234     &   write(lunout1,'(i4,4e14.4)') l,masse(igout,l)/ptimestep, &
     
    308251!     enddo
    309252      endif
    310 
    311       lfname='thermcell_flux2 after massa croissant ' // lS
    312       lvarname = 'fm'
    313       CALL check_var(lfname, lvarname, fm(:,l), ngrid, largest, .FALSE.)
    314       lvarname = 'entr'
    315       CALL check_var(lfname, lvarname, entr(:,l), ngrid, largest, .FALSE.)
    316       lvarname = 'detr'
    317       CALL check_var(lfname, lvarname, detr(:,l), ngrid, largest, .FALSE.)
    318253
    319254      if (prt_level.ge.10) &
     
    477412! Fin de la grande boucle sur les niveaux verticaux
    478413      enddo
    479       lfname='thermcell_flux2 after big loop'
    480       lvarname = 'fm'
    481       CALL check_var3D(lfname, lvarname, fm, ngrid, klev+1, largest, .FALSE.)
    482       lvarname = 'rhobarz'
    483       CALL check_var3D(lfname, lvarname, rhobarz, ngrid, klev, largest, .FALSE.)
    484       lvarname = 'zw2'
    485       CALL check_var3D(lfname, lvarname, zw2, ngrid, klev+1, largest, .FALSE.)
    486       lvarname = 'entr'
    487       CALL check_var3D(lfname, lvarname, entr, ngrid, klev, largest, .FALSE.)
    488       lvarname = 'detr'
    489       CALL check_var3D(lfname, lvarname, detr, ngrid, klev, largest, .FALSE.)
    490414
    491415!      if (prt_level.ge.10) &
     
    535459      enddo
    536460
    537       lfname='thermcell_flux2 after quantile'
    538       lvarname = 'fm'
    539       CALL check_var3D(lfname, lvarname, fm, ngrid, klev+1, largest, .FALSE.)
    540       lvarname = 'entr'
    541       CALL check_var3D(lfname, lvarname, entr, ngrid, klev, largest, .FALSE.)
    542       lvarname = 'detr'
    543       CALL check_var3D(lfname, lvarname, detr, ngrid, klev, largest, .FALSE.)
    544 
    545461      if (labort_gcm) then
    546462                         ig=igout
Note: See TracChangeset for help on using the changeset viewer.