Ignore:
Timestamp:
Mar 15, 2019 3:36:25 PM (6 years ago)
Author:
forkel
Message:

editing in kpp4palm: add statements for avoiding unused variables, remove $Id

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/UTIL/chemistry/gasphase_preproc/mechanisms/def_simple/chem_gasphase_mod.f90

    r3789 r3799  
    9898                                                                 
    9999  LOGICAL                     :: data_loaded = .FALSE.             
     100  REAL(dp), POINTER, DIMENSION(:), CONTIGUOUS    :: var             
    100101! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    101102!
     
    113114!
    114115! File                 : chem_gasphase_mod_Parameters.f90
    115 ! Time                 : Fri Mar  8 19:01:02 2019
    116 ! Working directory    : /home/forkel-r/palmstuff/work/trunk20190308/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
     116! Time                 : Fri Mar 15 16:28:27 2019
     117! Working directory    : /home/forkel-r/palmstuff/work/trunk20190315/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
    117118! Equation file        : chem_gasphase_mod.kpp
    118119! Output root filename : chem_gasphase_mod
     
    197198!
    198199! File                 : chem_gasphase_mod_Global.f90
    199 ! Time                 : Fri Mar  8 19:01:02 2019
    200 ! Working directory    : /home/forkel-r/palmstuff/work/trunk20190308/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
     200! Time                 : Fri Mar 15 16:28:27 2019
     201! Working directory    : /home/forkel-r/palmstuff/work/trunk20190315/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
    201202! Equation file        : chem_gasphase_mod.kpp
    202203! Output root filename : chem_gasphase_mod
     
    212213
    213214! C - Concentration of all species
    214   REAL(kind=dp):: c(nspec)
     215  REAL(kind=dp), TARGET    :: c(nspec)
    215216! VAR - Concentrations of variable species (global)
    216   REAL(kind=dp):: var(nvar)
     217! REAL(kind=dp):: var(nvar)  var is now POINTER
    217218! FIX - Concentrations of fixed species (global)
    218219  REAL(kind=dp):: fix(nfix)
    219220! VAR,FIX are chunks of array C
    220       EQUIVALENCE( c(1), var(1))
    221       EQUIVALENCE( c(10), fix(1))
    222221! RCONST - Rate constants (global)
    223222  REAL(kind=dp):: rconst(nreact)
     
    264263!
    265264! File                 : chem_gasphase_mod_JacobianSP.f90
    266 ! Time                 : Fri Mar  8 19:01:02 2019
    267 ! Working directory    : /home/forkel-r/palmstuff/work/trunk20190308/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
     265! Time                 : Fri Mar 15 16:28:27 2019
     266! Working directory    : /home/forkel-r/palmstuff/work/trunk20190315/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
    268267! Equation file        : chem_gasphase_mod.kpp
    269268! Output root filename : chem_gasphase_mod
     
    314313!
    315314! File                 : chem_gasphase_mod_Monitor.f90
    316 ! Time                 : Fri Mar  8 19:01:02 2019
    317 ! Working directory    : /home/forkel-r/palmstuff/work/trunk20190308/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
     315! Time                 : Fri Mar 15 16:28:27 2019
     316! Working directory    : /home/forkel-r/palmstuff/work/trunk20190315/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
    318317! Equation file        : chem_gasphase_mod.kpp
    319318! Output root filename : chem_gasphase_mod
     
    383382!
    384383! File                 : chem_gasphase_mod_Initialize.f90
    385 ! Time                 : Fri Mar  8 19:01:02 2019
    386 ! Working directory    : /home/forkel-r/palmstuff/work/trunk20190308/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
     384! Time                 : Fri Mar 15 16:28:27 2019
     385! Working directory    : /home/forkel-r/palmstuff/work/trunk20190315/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
    387386! Equation file        : chem_gasphase_mod.kpp
    388387! Output root filename : chem_gasphase_mod
     
    409408!
    410409! File                 : chem_gasphase_mod_Integrator.f90
    411 ! Time                 : Fri Mar  8 19:01:02 2019
    412 ! Working directory    : /home/forkel-r/palmstuff/work/trunk20190308/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
     410! Time                 : Fri Mar 15 16:28:27 2019
     411! Working directory    : /home/forkel-r/palmstuff/work/trunk20190315/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
    413412! Equation file        : chem_gasphase_mod.kpp
    414413! Output root filename : chem_gasphase_mod
     
    467466!
    468467! File                 : chem_gasphase_mod_LinearAlgebra.f90
    469 ! Time                 : Fri Mar  8 19:01:02 2019
    470 ! Working directory    : /home/forkel-r/palmstuff/work/trunk20190308/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
     468! Time                 : Fri Mar 15 16:28:27 2019
     469! Working directory    : /home/forkel-r/palmstuff/work/trunk20190315/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
    471470! Equation file        : chem_gasphase_mod.kpp
    472471! Output root filename : chem_gasphase_mod
     
    494493!
    495494! File                 : chem_gasphase_mod_Jacobian.f90
    496 ! Time                 : Fri Mar  8 19:01:02 2019
    497 ! Working directory    : /home/forkel-r/palmstuff/work/trunk20190308/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
     495! Time                 : Fri Mar 15 16:28:27 2019
     496! Working directory    : /home/forkel-r/palmstuff/work/trunk20190315/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
    498497! Equation file        : chem_gasphase_mod.kpp
    499498! Output root filename : chem_gasphase_mod
     
    521520!
    522521! File                 : chem_gasphase_mod_Function.f90
    523 ! Time                 : Fri Mar  8 19:01:02 2019
    524 ! Working directory    : /home/forkel-r/palmstuff/work/trunk20190308/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
     522! Time                 : Fri Mar 15 16:28:27 2019
     523! Working directory    : /home/forkel-r/palmstuff/work/trunk20190315/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
    525524! Equation file        : chem_gasphase_mod.kpp
    526525! Output root filename : chem_gasphase_mod
     
    550549!
    551550! File                 : chem_gasphase_mod_Rates.f90
    552 ! Time                 : Fri Mar  8 19:01:02 2019
    553 ! Working directory    : /home/forkel-r/palmstuff/work/trunk20190308/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
     551! Time                 : Fri Mar 15 16:28:27 2019
     552! Working directory    : /home/forkel-r/palmstuff/work/trunk20190315/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
    554553! Equation file        : chem_gasphase_mod.kpp
    555554! Output root filename : chem_gasphase_mod
     
    576575!
    577576! File                 : chem_gasphase_mod_Util.f90
    578 ! Time                 : Fri Mar  8 19:01:02 2019
    579 ! Working directory    : /home/forkel-r/palmstuff/work/trunk20190308/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
     577! Time                 : Fri Mar 15 16:28:27 2019
     578! Working directory    : /home/forkel-r/palmstuff/work/trunk20190315/UTIL/chemistry/gasphase_preproc/tmp_kpp4palm
    580579! Equation file        : chem_gasphase_mod.kpp
    581580! Output root filename : chem_gasphase_mod
     
    692691 
    693692 
     693  ! openmp directives generated by kp4
     694 
     695  !$OMP THREADPRIVATE (vl, vl_glo, is, ie, data_loaded)
     696  !$OMP THREADPRIVATE (c, var, fix, rconst, time, temp, stepmin, cfactor)
     697  !$OMP THREADPRIVATE (qvap, fakt, cs_mech, a, icntrl, rcntrl)
     698 
    694699 CONTAINS
    695700 
     
    703708  k = is
    704709  cfactor = 1.000000e+00_dp
     710
     711! Following line is just to avoid compiler message about unused variables
     712IF ( lu_crow(1) == 1  .OR.  lu_icol(1) == 1  .OR.  lu_irow(1) == 1 )  CONTINUE
     713
    705714
    706715  x = (0.) * cfactor
     
    788797
    789798
     799! Following line is just to avoid compiler message about unused variables
     800IF ( f(nfix) > 0.0_dp )  CONTINUE
     801
    790802! Computation of equation rates
    791803  a(1) = rct(1) * v(7)
     
    849861! B - Temporary array
    850862  REAL(kind=dp):: b(13)
     863!
     864! Following line is just to avoid compiler message about unused variables
     865IF ( f(nfix) > 0.0_dp )  CONTINUE
    851866
    852867! B(1) = dA(1)/dV(7)
     
    10671082      REAL(kind=dp) :: x(n), alpha
    10681083      REAL(kind=dp), PARAMETER  :: zero=0.0_dp, one=1.0_dp
     1084
     1085! Following line is just to avoid compiler message about unused variables
     1086IF ( incx == 0 )  CONTINUE
    10691087
    10701088      IF (alpha .eq. one)RETURN
     
    11301148      REAL(kind=dp), PARAMETER :: zero = 0.0_dp
    11311149
     1150
     1151! Following line is just to avoid compiler message about unused variables
     1152IF ( incx == 0  .OR.  incy == 0 )  CONTINUE
    11321153      IF (alpha .eq. zero)RETURN
    11331154      IF (n .le. 0)RETURN
     
    18621883!~~~> inout variables
    18631884   REAL(kind=dp), INTENT(INOUT):: b(n)
     1885
     1886! Following line is just to avoid compiler message about unused variables
     1887IF ( pivot(1) == 0 )  CONTINUE
    18641888
    18651889#ifdef full_algebra   
     
    24492473  IF (PRESENT (rcntrl_i)) rcntrl  = rcntrl_i                     
    24502474                                                                   
     2475  var => c(1:nvar)                                                 
     2476                                                                   
    24512477  vl_glo = size(tempi, 1)                                           
    24522478                                                                   
Note: See TracChangeset for help on using the changeset viewer.