Changeset 2068


Ignore:
Timestamp:
Jun 20, 2014, 11:51:15 AM (10 years ago)
Author:
lguez
Message:

Only whitespace differences. The tests on iflag_trig_bl (lines 2373 sqq.) were not indented.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/physiq.F90

    r2037 r2068  
    442442  REAL beta_prec_fisrt(klon,klev) ! taux de conv de l'eau cond (fisrt)
    443443  ! RomP <<<
    444  
     444
    445445  REAL          :: calday
    446446
     
    489489  EXTERNAL fisrtilp  ! schema de condensation a grande echelle (pluie)
    490490  !AA
    491 ! JBM (3/14) fisrtilp_tr not loaded
    492 ! EXTERNAL fisrtilp_tr ! schema de condensation a grande echelle (pluie)
     491  ! JBM (3/14) fisrtilp_tr not loaded
     492  ! EXTERNAL fisrtilp_tr ! schema de condensation a grande echelle (pluie)
    493493  !                          ! stockage des coefficients necessaires au
    494494  !                          ! lessivage OFF-LINE et ON-LINE
     
    542542
    543543  !
    544 !  REAL zxsnow(klon)
     544  !  REAL zxsnow(klon)
    545545  REAL zxsnow_dummy(klon)
    546546  !
     
    636636  !======================================================================
    637637  !
    638  
     638
    639639  !
    640640  integer itau_w   ! pas de temps ecriture = itap + itau_phy
     
    689689  !
    690690  !IM 280405 BEG
    691 !  INTEGER nid_bilKPins, nid_bilKPave
    692 !  SAVE nid_bilKPins, nid_bilKPave
    693 !  !$OMP THREADPRIVATE(nid_bilKPins, nid_bilKPave)
     691  !  INTEGER nid_bilKPins, nid_bilKPave
     692  !  SAVE nid_bilKPins, nid_bilKPave
     693  !  !$OMP THREADPRIVATE(nid_bilKPins, nid_bilKPave)
    694694  !
    695695  REAL ve_lay(klon,klev) ! transport meri. de l'energie a chaque niveau vert.
     
    701701  REAL zsto
    702702  REAL zstophy, zout
    703  
     703
    704704  real zjulian
    705705  save zjulian
     
    15881588
    15891589     IF (solarlong0<-999.) then
    1590      ! Generic case with evolvoing season
     1590        ! Generic case with evolvoing season
    15911591        zzz=real(days_elapsed+1)
    15921592     ELSE IF (abs(solarlong0-1000.)<1.e-4) then
    1593      ! Particular case with annual mean insolation
     1593        ! Particular case with annual mean insolation
    15941594        zzz=real(90) ! could be revisited
    15951595        IF (read_climoz/=-1) THEN
     
    15981598        ENDIF
    15991599     ELSE
    1600      ! Case where the season is imposed with solarlong0
     1600        ! Case where the season is imposed with solarlong0
    16011601        zzz=real(90) ! could be revisited
    16021602     ENDIF
     
    17641764     IF (klon_glo==1) THEN
    17651765        CALL add_pbl_tend &
    1766           (d_u_vdf,d_v_vdf,d_t_vdf+d_t_diss,d_q_vdf,dql0,paprs,'vdf')
     1766             (d_u_vdf,d_v_vdf,d_t_vdf+d_t_diss,d_q_vdf,dql0,paprs,'vdf')
    17671767     ELSE
    17681768        CALL add_phys_tend &
    1769           (d_u_vdf,d_v_vdf,d_t_vdf+d_t_diss,d_q_vdf,dql0,paprs,'vdf')
     1769             (d_u_vdf,d_v_vdf,d_t_vdf+d_t_diss,d_q_vdf,dql0,paprs,'vdf')
    17701770     ENDIF
    17711771     !--------------------------------------------------------------------
     
    23692369                   s_trig,s2,n2
    23702370           ENDIF
    2371  
    2372 !Option pour re-activer l'ancien calcul de Ale_bl (iflag_trig_bl=2)
     2371
     2372           !Option pour re-activer l'ancien calcul de Ale_bl (iflag_trig_bl=2)
    23732373           IF (iflag_trig_bl.eq.1) then
    23742374
    2375            !----Tirage al\'eatoire et calcul de ale_bl_trig
    2376            do i=1,klon
    2377               if ( (ale_bl_stat(i) .gt. abs(cin(i))+1.e-10) )  then
    2378                  proba_notrig(i)=(1.-exp(-s_trig/s2(i)))** &
    2379                       (n2(i)*dtime/tau_trig(i))
    2380                  !        print *, 'proba_notrig(i) ',proba_notrig(i)
    2381                  if (random_notrig(i) .ge. proba_notrig(i)) then
    2382                     ale_bl_trig(i)=ale_bl_stat(i)
     2375              !----Tirage al\'eatoire et calcul de ale_bl_trig
     2376              do i=1,klon
     2377                 if ( (ale_bl_stat(i) .gt. abs(cin(i))+1.e-10) )  then
     2378                    proba_notrig(i)=(1.-exp(-s_trig/s2(i)))** &
     2379                         (n2(i)*dtime/tau_trig(i))
     2380                    !        print *, 'proba_notrig(i) ',proba_notrig(i)
     2381                    if (random_notrig(i) .ge. proba_notrig(i)) then
     2382                       ale_bl_trig(i)=ale_bl_stat(i)
     2383                    else
     2384                       ale_bl_trig(i)=0.
     2385                    endif
    23832386                 else
     2387                    proba_notrig(i)=1.
     2388                    random_notrig(i)=0.
    23842389                    ale_bl_trig(i)=0.
    23852390                 endif
    2386               else
    2387                  proba_notrig(i)=1.
    2388                  random_notrig(i)=0.
    2389                  ale_bl_trig(i)=0.
    2390               endif
    2391            enddo
     2391              enddo
    23922392
    23932393           ELSE IF (iflag_trig_bl.eq.2) then
    23942394
    2395            do i=1,klon
    2396               if ( (Ale_bl(i) .gt. abs(cin(i))+1.e-10) )  then
    2397                  proba_notrig(i)=(1.-exp(-s_trig/s2(i)))** &
    2398                       (n2(i)*dtime/tau_trig(i))
    2399                  !        print *, 'proba_notrig(i) ',proba_notrig(i)
    2400                  if (random_notrig(i) .ge. proba_notrig(i)) then
    2401                     ale_bl_trig(i)=Ale_bl(i)
     2395              do i=1,klon
     2396                 if ( (Ale_bl(i) .gt. abs(cin(i))+1.e-10) )  then
     2397                    proba_notrig(i)=(1.-exp(-s_trig/s2(i)))** &
     2398                         (n2(i)*dtime/tau_trig(i))
     2399                    !        print *, 'proba_notrig(i) ',proba_notrig(i)
     2400                    if (random_notrig(i) .ge. proba_notrig(i)) then
     2401                       ale_bl_trig(i)=Ale_bl(i)
     2402                    else
     2403                       ale_bl_trig(i)=0.
     2404                    endif
    24022405                 else
     2406                    proba_notrig(i)=1.
     2407                    random_notrig(i)=0.
    24032408                    ale_bl_trig(i)=0.
    24042409                 endif
    2405               else
    2406                  proba_notrig(i)=1.
    2407                  random_notrig(i)=0.
    2408                  ale_bl_trig(i)=0.
    2409               endif
    2410            enddo
     2410              enddo
    24112411
    24122412           ENDIF
     
    24242424
    24252425           do i=1,klon
    2426 !CR: alp probabiliste
    2427                if (ale_bl_trig(i).gt.0.) then
    2428                   alp_bl(i)=alp_bl(i)/(1.-min(proba_notrig(i),0.999))
    2429                endif
    2430            enddo       
    2431  
     2426              !CR: alp probabiliste
     2427              if (ale_bl_trig(i).gt.0.) then
     2428                 alp_bl(i)=alp_bl(i)/(1.-min(proba_notrig(i),0.999))
     2429              endif
     2430           enddo
     2431
    24322432        else if (iflag_clos_bl.eq.2) then
    24332433
    2434 !CR: alp calculee dans thermcell_main
     2434           !CR: alp calculee dans thermcell_main
    24352435           do i=1,klon
    24362436              alp_bl(i)=alp_bl_stat(i)
     
    24692469
    24702470        do i=1,klon
    2471 !           zmax_th(i)=pphi(i,lmax_th(i))/rg
    2472 !CR:04/05/12:correction calcul zmax
    2473          zmax_th(i)=zmax0(i)
     2471           !           zmax_th(i)=pphi(i,lmax_th(i))/rg
     2472           !CR:04/05/12:correction calcul zmax
     2473           zmax_th(i)=zmax0(i)
    24742474        enddo
    24752475
     
    25002500
    25012501        if (iflag_thermals==0) then
    2502         ! Calling adjustment alone (but not the thermal plume model)
     2502           ! Calling adjustment alone (but not the thermal plume model)
    25032503           CALL ajsec_convV2(paprs, pplay, t_seri,q_seri &
    25042504                , d_t_ajsb, d_q_ajsb)
    25052505        else if (iflag_thermals>0) then
    2506         ! Calling adjustment above the top of thermal plumes
     2506           ! Calling adjustment above the top of thermal plumes
    25072507           CALL ajsec(paprs, pplay, t_seri,q_seri,limbas &
    25082508                , d_t_ajsb, d_q_ajsb)
     
    26782678        IF (.NOT. aerosol_couple) THEN
    26792679           IF (iflag_rrtm .EQ. 0) THEN !--old radiation
    2680 !
    2681              CALL readaerosol_optic( &
    2682              debut, new_aod, flag_aerosol, itap, jD_cur-jD_ref, &
    2683              pdtphys, pplay, paprs, t_seri, rhcl, presnivs,  &
    2684              mass_solu_aero, mass_solu_aero_pi,  &
    2685              tau_aero, piz_aero, cg_aero,  &
    2686              tausum_aero, tau3d_aero)
    2687 !
     2680              !
     2681              CALL readaerosol_optic( &
     2682                   debut, new_aod, flag_aerosol, itap, jD_cur-jD_ref, &
     2683                   pdtphys, pplay, paprs, t_seri, rhcl, presnivs,  &
     2684                   mass_solu_aero, mass_solu_aero_pi,  &
     2685                   tau_aero, piz_aero, cg_aero,  &
     2686                   tausum_aero, tau3d_aero)
     2687              !
    26882688           ELSE                       ! RRTM radiation
    2689 !
     2689              !
    26902690#ifdef CPP_RRTM
    2691              CALL readaerosol_optic_rrtm( &
    2692              debut, new_aod, flag_aerosol, itap, jD_cur-jD_ref, &
    2693              pdtphys, pplay, paprs, t_seri, rhcl, presnivs,  &
    2694              mass_solu_aero, mass_solu_aero_pi,  &
    2695              tau_aero_rrtm, piz_aero_rrtm, cg_aero_rrtm,  &
    2696              tausum_aero, tau3d_aero)
     2691              CALL readaerosol_optic_rrtm( &
     2692                   debut, new_aod, flag_aerosol, itap, jD_cur-jD_ref, &
     2693                   pdtphys, pplay, paprs, t_seri, rhcl, presnivs,  &
     2694                   mass_solu_aero, mass_solu_aero_pi,  &
     2695                   tau_aero_rrtm, piz_aero_rrtm, cg_aero_rrtm,  &
     2696                   tausum_aero, tau3d_aero)
    26972697#else
    26982698
    2699             abort_message='You should compile with -rrtm if running with iflag_rrtm=1'
    2700             call abort_gcm(modname,abort_message,1)
     2699              abort_message='You should compile with -rrtm if running with iflag_rrtm=1'
     2700              call abort_gcm(modname,abort_message,1)
    27012701#endif
    2702 !
     2702              !
    27032703           ENDIF
    27042704        ENDIF
     
    27062706        tausum_aero(:,:,:) = 0.
    27072707        IF (iflag_rrtm .EQ. 0) THEN !--old radiation
    2708           tau_aero(:,:,:,:) = 0.
    2709           piz_aero(:,:,:,:) = 0.
    2710           cg_aero(:,:,:,:)  = 0.
     2708           tau_aero(:,:,:,:) = 0.
     2709           piz_aero(:,:,:,:) = 0.
     2710           cg_aero(:,:,:,:)  = 0.
    27112711        ELSE
    2712           tau_aero_rrtm(:,:,:,:)=0.0
    2713           piz_aero_rrtm(:,:,:,:)=0.0
    2714           cg_aero_rrtm(:,:,:,:)=0.0
     2712           tau_aero_rrtm(:,:,:,:)=0.0
     2713           piz_aero_rrtm(:,:,:,:)=0.0
     2714           cg_aero_rrtm(:,:,:,:)=0.0
    27152715        ENDIF
    27162716     ENDIF
     
    27212721        PRINT *,'appel a readaerosolstrat', mth_cur
    27222722        IF (iflag_rrtm.EQ.0) THEN
    2723          CALL readaerosolstrato(debut)
     2723           CALL readaerosolstrato(debut)
    27242724        ELSE
    27252725#ifdef CPP_RRTM
    2726          CALL readaerosolstrato_rrtm(debut)
     2726           CALL readaerosolstrato_rrtm(debut)
    27272727#else
    27282728
    2729          abort_message='You should compile with -rrtm if running with iflag_rrtm=1'
    2730          call abort_gcm(modname,abort_message,1)
     2729           abort_message='You should compile with -rrtm if running with iflag_rrtm=1'
     2730           call abort_gcm(modname,abort_message,1)
    27312731#endif
    27322732        ENDIF
     
    29512951     IF (iflag_rrtm.NE.0) THEN
    29522952#ifdef CPP_RRTM
    2953        IF (ok_cdnc.AND.NRADLP.NE.3) THEN
    2954          abort_message='RRTM choix incoherent NRADLP doit etre egal a 3 pour ok_cdnc'
    2955          call abort_gcm(modname,abort_message,1)
    2956        endif
     2953        IF (ok_cdnc.AND.NRADLP.NE.3) THEN
     2954           abort_message='RRTM choix incoherent NRADLP doit etre egal a 3 pour ok_cdnc'
     2955           call abort_gcm(modname,abort_message,1)
     2956        endif
    29572957#else
    29582958
    2959        abort_message='You should compile with -rrtm if running with iflag_rrtm=1'
    2960        call abort_gcm(modname,abort_message,1)
     2959        abort_message='You should compile with -rrtm if running with iflag_rrtm=1'
     2960        call abort_gcm(modname,abort_message,1)
    29612961#endif
    29622962     ENDIF
Note: See TracChangeset for help on using the changeset viewer.