Ignore:
Timestamp:
Oct 19, 2022, 11:24:43 AM (2 years ago)
Author:
aslmd
Message:

Fixed initialisation of RH_generic &cloudfrac

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/physiq_mod.F90

    r2785 r2802  
    746746            call getin_p("corrkdir",corrkdir)
    747747            print*,"corrkdir = ", corrkdir
    748             write (tmp1, '(i3)') L_NSPECTI
    749             write (tmp2, '(i3)') L_NSPECTV
     748            write (tmp1, '(i4)') L_NSPECTI
     749            write (tmp2, '(i4)') L_NSPECTV
    750750            banddir=trim(trim(adjustl(tmp1))//'x'//trim(adjustl(tmp2)))
    751751            banddir=trim(trim(adjustl(corrkdir))//'/'//trim(adjustl(banddir)))
     
    16301630
    16311631               ! Let's loop on tracers
     1632               cloudfrac(:,:)=0.0
    16321633               do iq=1,nq
    1633 
    16341634                  call generic_tracer_index(nq,iq,igcm_generic_vap,igcm_generic_ice,call_ice_vap_generic)
    1635                  
    16361635                  if (call_ice_vap_generic) then ! to call only one time the ice/vap pair of a tracer
    16371636                     do l = 1, nlayer
    16381637                        do ig=1,ngrid
    1639                            cloudfrac(ig,l)=MAX(rneb_generic(ig,l,iq),rneb_man(ig,l))
     1638                           cloudfrac(ig,l)=rneb_generic(ig,l,iq)
    16401639                        enddo
    16411640                     enddo
     
    17181717         ! Sedimentation.
    17191718         if (sedimentation) then
    1720        
     1719
    17211720            zdqsed(1:ngrid,1:nlayer,1:nq) = 0.0
    17221721            zdqssed(1:ngrid,1:nq)  = 0.0
     
    21562155      ! Calculate RH_generic (Generic Relative Humidity) for diagnostic.
    21572156      if(generic_condensation)then
     2157         RH_generic(:,:,:)=0.0
    21582158         do iq=1,nq
    21592159
     
    24992499            call writediagfi(ngrid,trim(noms(iq))//'_col',trim(noms(iq))//'_col',    &
    25002500                            'kg m^-2',2,qcol(1,iq) )
    2501                          
    25022501!          call writediagfi(ngrid,trim(noms(iq))//'_surf',trim(noms(iq))//'_surf',  &
    25032502!                          'kg m^-2',2,qsurf(1,iq) )                         
Note: See TracChangeset for help on using the changeset viewer.