Ignore:
Timestamp:
Nov 14, 2018 1:36:44 PM (5 years ago)
Author:
raasch
Message:

unused variables removed, missing working precision added, missing preprocessor directives added, bugfix concerning allocation of t_surf_wall_v in nopointer case, declaration statements rearranged to avoid compile time errors, mpi_abort arguments replaced to avoid compile errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/chemistry_model_mod.f90

    r3458 r3524  
    2727! -----------------
    2828! $Id$
     29! working precision added to make code Fortran 2008 conform
     30!
     31! 3458 2018-10-30 14:51:23Z kanani
    2932! from chemistry branch r3443, banzhafs, basit:
    3033! replace surf_lsm_h%qv1(m) by q(k,j,i) for mixing ratio in chem_depo
     
    47804783
    47814784         ! vapour pressure deficit influence
    4782          F_vpd = min(1.,((1.-F_min(lu))*(vpd_min(lu)-vpd)/(vpd_min(lu)-vpd_max(lu)) + F_min(lu) ))
     4785         F_vpd = MIN( 1.0_wp, ((1.0_wp-F_min(lu))*(vpd_min(lu)-vpd)/(vpd_min(lu)-vpd_max(lu)) + F_min(lu) ) )
    47834786         F_vpd = max(F_vpd,F_min(lu))
    47844787
     
    48614864
    48624865      ! Compute visible and near-infrared radiation
    4863       rv=max(0.1,rdu+rdv)
    4864       rn=max(0.01,rdm+rdn)
     4866      rv = MAX( 0.1_wp, rdu+rdv )
     4867      rn = MAX( 0.01_wp, rdm+rdn )
    48654868
    48664869      ! Compute ratio between input global radiation and total radiation computed here
    4867       ratio=min(0.9,glrad/(rv+rn))
     4870      ratio = MIN( 0.9_wp, glrad/(rv+rn) )
    48684871
    48694872      !     Calculate total visible radiation
     
    48714874
    48724875      !     Calculate fraction of PAR in the direct beam
    4873       fv=min(0.99, (0.9-ratio)/0.7)            ! help variable
    4874       fv=max(0.01,rdu/rv*(1.0-fv**0.6667))     ! fraction of PAR in the direct beam
     4876      fv = MIN( 0.99_wp, (0.9_wp-ratio)/0.7_wp )            ! help variable
     4877      fv = MAX( 0.01_wp, rdu/rv*(1.0_wp-fv**0.6667_wp) )     ! fraction of PAR in the direct beam
    48754878
    48764879      ! Compute direct and diffuse parts of PAR
Note: See TracChangeset for help on using the changeset viewer.