Changeset 1526 for trunk/LMDZ.GENERIC


Ignore:
Timestamp:
Apr 1, 2016, 3:07:57 PM (9 years ago)
Author:
mturbet
Message:

minor buggs and modifications

Location:
trunk/LMDZ.GENERIC/libf/phystd
Files:
4 edited

Legend:

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

    r1315 r1526  
    5656!     ... and for y within the temperature range
    5757      if ((y.lt.y_arr(1)).or.(y.gt.y_arr(nY))) then
    58          write(*,*) 'Warning from bilinearH2H2:'
     58         write(*,*) 'Warning from bilinearbig routine:'
    5959         write(*,*) 'Outside continuum temperature range!'
    6060         if(y.lt.y_arr(1))then
  • trunk/LMDZ.GENERIC/libf/phystd/callcorrk.F90

    r1521 r1526  
    180180      ! Included by MT for albedo calculations.     
    181181      REAL*8 albedo_temp(L_NSPECTV) ! For equivalent albedo calculation.
    182 
     182      REAL*8 surface_stellar_flux   ! Stellar flux reaching the surface. Useful for equivalent albedo calculation.
    183183
    184184
     
    809809
    810810
    811          ! Equivalent Albedo Calculation. MT2015
    812          if(fract(ig) .ge. 1.0e-4) then ! equivalent albedo makes sense only during daylight.           
    813             DO nw=1,L_NSPECTV             
    814                albedo_temp(nw)=albedo(ig,nw)*nfluxgndv_nu(nw)
    815             ENDDO
    816             albedo_temp(1:L_NSPECTV)=albedo_temp(1:L_NSPECTV)/sum(nfluxgndv_nu(1:L_NSPECTV))
    817             albedo_equivalent(ig)=sum(albedo_temp(1:L_NSPECTV))
     811         ! Equivalent Albedo Calculation (for OUTPUT). MT2015
     812         if(fract(ig) .ge. 1.0e-4) then ! equivalent albedo makes sense only during daylight.       
     813            surface_stellar_flux=sum(nfluxgndv_nu(1:L_NSPECTV))     
     814            if(surface_stellar_flux .gt. 1.0e-3) then ! equivalent albedo makes sense only if the stellar flux received by the surface is positive.
     815               DO nw=1,L_NSPECTV                 
     816                  albedo_temp(nw)=albedo(ig,nw)*nfluxgndv_nu(nw)
     817               ENDDO
     818               albedo_temp(1:L_NSPECTV)=albedo_temp(1:L_NSPECTV)/surface_stellar_flux
     819               albedo_equivalent(ig)=sum(albedo_temp(1:L_NSPECTV))
     820            else
     821               albedo_equivalent(ig)=0.0 ! Spectrally Integrated Albedo not defined for non-irradiated grid points. So we arbitrary set the equivalent albedo to 0.
     822            endif
    818823         else
    819824            albedo_equivalent(ig)=0.0 ! Spectrally Integrated Albedo not defined for non-irradiated grid points. So we arbitrary set the equivalent albedo to 0.
  • trunk/LMDZ.GENERIC/libf/phystd/condense_co2.F90

    r1485 r1526  
    411411
    412412            IF(ABS(pdpsrfc(ig)*ptimestep).GT.pplev(ig,1)) THEN
    413                PRINT*,'STOP in condens'
     413               PRINT*,'STOP in condens in condense_co2'
    414414               PRINT*,'condensing more than total mass'
    415415               PRINT*,'Grid point ',ig
  • trunk/LMDZ.GENERIC/libf/phystd/mass_redistribution.F90

    r1397 r1526  
    166166      do ig = 1, ngrid
    167167        IF(ABS(pdpsrfmr(ig)*ptimestep).GT.pplev(ig,1)) THEN
    168          PRINT*,'STOP in condens'
     168         PRINT*,'STOP in condens in mass_redistribution'
    169169         PRINT*,'condensing more than total mass'
    170170         PRINT*,'Grid point ',ig
Note: See TracChangeset for help on using the changeset viewer.