Changeset f9ce123 in flexpart.git for src


Ignore:
Timestamp:
Apr 9, 2015, 3:33:01 PM (9 years ago)
Author:
Espen Sollum ATMOS <eso@…>
Branches:
master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug, univie
Children:
b5d0e7e
Parents:
6f3a20a
Message:

Added new parameter ohnconst for OH fields. Updated SPECIES files

Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/com_mod.f90

    r5f9d14a rf9ce123  
    163163  real :: rgs(maxspec,5,numclass),rlu(maxspec,5,numclass)
    164164  real :: rm(maxspec),dryvel(maxspec),kao(maxspec)
    165   real :: ohcconst(maxspec),ohdconst(maxspec)
     165  real :: ohcconst(maxspec),ohdconst(maxspec),ohnconst(maxspec)
    166166  ! se  it is possible to associate a species with a second one to make transfer from gas to aerosol
    167167  integer :: spec_ass(maxspec)
  • src/makefile

    r5f9d14a rf9ce123  
    3434FLEXPART-GFS-MPI        = FP_gfs_MPI
    3535
     36## Linker
     37LD = ld.gold
     38
    3639## COMPILERS
    37 F90       = /usr/bin/gfortran
    38 #F90      = ${HOME}/gcc-4.9.1/bin/gfortran
     40#F90       = /usr/bin/gfortran
     41F90       = ${HOME}/gcc-4.9.1/bin/gfortran
    3942#MPIF90    = ${HOME}/opt/bin/mpifort
    4043#MPIF90    = mpif90.mpich
    41 MPIF90    = mpif90.openmpi
    42 #MPIF90    = mpifort
     44#MPIF90    = mpif90.openmpi
     45MPIF90    = mpifort
    4346
    4447## OPTIMIZATION LEVEL
     
    5154## 1) System libraries at NILU
    5255# INCPATH1 = /usr/include
    53 INCPATH1 = /xnilu_wrk/flex_wrk/bin64/grib_api/include
    54 LIBPATH1 = /xnilu_wrk/flex_wrk/bin64/grib_api/lib
     56# INCPATH1 = /xnilu_wrk/flex_wrk/bin64/grib_api/include
     57# LIBPATH1 = /xnilu_wrk/flex_wrk/bin64/grib_api/lib
    5558# LIBPATH2 = /usr/lib/x86_64-linux-gnu
    5659
    5760## 2) Home-made libraries
    58 #INCPATH2  = ${HOME}/include
    59 INCPATH2  = /homevip/flexpart/include
    60 LIBPATH2 = /homevip/flexpart/lib
    61 #INCPATH2 = ${HOME}/lib
    62 
    63 FFLAGS   = -I$(INCPATH1) -I$(INCPATH2) -O$(O_LEV) -g -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -fmessage-length=0 -flto=jobserver -O$(O_LEV) -mtune=native $(FUSER) # -march=native
     61INCPATH1  = ${HOME}/include
     62INCPATH2  = /homevip/flexpart/include/
     63#LIBPATH2 = /homevip/flexpart/lib/
     64LIBPATH1 = ${HOME}/lib
     65LIBPATH2 = ${HOME}/lib 
     66
     67FFLAGS   = -I$(INCPATH1) -I$(INCPATH2) -O$(O_LEV) -g -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -fmessage-length=0 -flto=jobserver -O$(O_LEV) -mtune=native -fuse-linker-plugin $(FUSER) # -march=native
     68
    6469DBGFLAGS = -I$(INCPATH1) -I$(INCPATH2) -O$(O_LEV_DBG) -g3 -ggdb3 -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -fmessage-length=0 -flto=jobserver -O$(O_LEV_DBG) -fbacktrace -Warray-bounds  -Wall -fcheck=all $(FUSER)  # -ffpe-trap=invalid,overflow,denormal,underflow,zero -fdump-core
    6570
  • src/ohreaction.f90

    r8a65cb0 rf9ce123  
    153153      do k=1,nspec                               
    154154        if (ohcconst(k).gt.0.) then
    155           ohrate=ohcconst(k)*temp**2*exp(-ohdconst(k)/temp)*oh_average
     155          ohrate=ohcconst(k)*temp**ohnconst(k)*exp(-ohdconst(k)/temp)*oh_average
    156156          ! new particle mass
    157157          restmass = xmass1(jpart,k)*exp(-1*ohrate*abs(ltsample))
  • src/readspecies.f90

    r5f9d14a rf9ce123  
    4747  ! ohcconst             OH reaction rate constant C                           *
    4848  ! ohdconst             OH reaction rate constant D                           *
     49  ! ohnconst             OH reaction rate constant n                           *
    4950  ! id_spec              SPECIES number as referenced in RELEASE file          *
    5051  ! id_pos               position where SPECIES data shall be stored           *
     
    6667  character(len=16) :: pspecies
    6768  real :: pdecay, pweta, pwetb, preldiff, phenry, pf0, pdensity, pdquer
    68   real :: pdsigma, pdryvel, pweightmolar, pohcconst, pohdconst, pspec_ass, pkao
     69  real :: pdsigma, pdryvel, pweightmolar, pohcconst, pohdconst, pohnconst, pspec_ass, pkao
    6970  real :: pweta_in, pwetb_in, pwetc_in, pwetd_in
    7071  integer :: readerror
     
    7576       pweta_in, pwetb_in, pwetc_in, pwetd_in, &
    7677       preldiff, phenry, pf0, pdensity, pdquer, &
    77        pdsigma, pdryvel, pweightmolar, pohcconst, pohdconst, pspec_ass, pkao
     78       pdsigma, pdryvel, pweightmolar, pohcconst, pohdconst, pohnconst, pspec_ass, pkao
    7879
    7980  pspecies=" "
     
    9495  pohcconst=-9.99
    9596  pohdconst=-9.9E-09
     97  pohnconst=2.0
    9698  pspec_ass=-9
    9799  pkao=-99.99
     
    160162    read(unitspecies,'(f8.2)',end=22) ohdconst(pos_spec)
    161163!  write(*,*) ohdconst(pos_spec)
     164    read(unitspecies,'(f8.2)',end=22) ohnconst(pos_spec)
     165!  write(*,*) ohnconst(pos_spec)
    162166    read(unitspecies,'(i18)',end=22) spec_ass(pos_spec)
    163167!  write(*,*) spec_ass(pos_spec)
     
    183187    pohcconst=ohcconst(pos_spec)
    184188    pohdconst=ohdconst(pos_spec)
     189    pohnconst=ohnconst(pos_spec)
    185190    pspec_ass=spec_ass(pos_spec)
    186191    pkao=kao(pos_spec)
     
    206211    ohcconst(pos_spec)=pohcconst
    207212    ohdconst(pos_spec)=pohdconst
     213    ohdconst(pos_spec)=pohnconst
    208214    spec_ass(pos_spec)=pspec_ass
    209215    kao(pos_spec)=pkao
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG