Changeset 2699 for palm


Ignore:
Timestamp:
Dec 15, 2017 12:38:41 PM (7 years ago)
Author:
kanani
Message:

Adjustment of chemistry gasphase preprocessor

Location:
palm/trunk/UTIL/chemistry/gasphase_preproc
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm/bin/kpp4palm.ksh

    • Property svn:keywords set to Id
    r2696 r2699  
    11#!/usr/bin/ksh
    22
    3 ###########################################################################
    4 #
    5 #     create_kpp_module
    6 #
    7 #     create scalar code from .f90 sources created by KPP to be used in MECCA
    8 #
    9 #     COPYRIGHT Klaus Ketelsen and MPI-CH   April 2007
    10 #
    11 ###########################################################################
     3# kpp4palm - script for creating gasphase module
     4
     5#------------------------------------------------------------------------------#
     6# This file is part of the PALM model system.
     7#
     8# PALM is free software: you can redistribute it and/or modify it under the terms
     9# of the GNU General Public License as published by the Free Software Foundation,
     10# either version 3 of the License, or (at your option) any later version.
     11#
     12# PALM is distributed in the hope that it will be useful, but WITHOUT ANY
     13# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
     14# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
     15#
     16# You should have received a copy of the GNU General Public License along with
     17# PALM. If not, see <http://www.gnu.org/licenses/>.
     18#
     19# Copyright 2017-2017  Klaus Ketelsen and MPI-CH (April 2007)
     20# Copyright 2017-2017  Karlsruhe Institute of Technology
     21# Copyright 2017-2017  Leibniz Universitaet Hannover
     22#------------------------------------------------------------------------------#
    1223#
    1324# Current revisions:
     
    1728# Former revisions:
    1829# -----------------
    19 # $Id$
    20 #
    21 #
     30# $Id$
     31# Initial revision
     32#
     33#
     34#
     35#
     36# Other notes:
     37# ------------#
    2238# Re-introduced relative path for KPP_HOME
    2339# Subroutine list adapted to lowercase subroutine names
     
    2642# Renamed this fikle from kp4/ksh to kpp4kpp.ksh
    2743# changed location of def_mechanism directories to GASPHASE_PREPROC/mechanisms
    28 #
    29 #
    3044#
    3145# Nov. 2016: Initial Version of KPP chemistry convertor by Klaus Ketelsen
     
    4963# Default
    5064
    51 OUTDIR=`pwd`/../SOURCE
     65OUTDIR=`pwd`/../../../SOURCE
    5266OUTFILE=chem_gasphase_mod
    5367DEFDIR=`pwd`/mechanisms/def_smog
  • palm/trunk/UTIL/chemistry/gasphase_preproc/run_kpp4palm.ksh

    • Property svn:keywords set to Id
    r2696 r2699  
    11#!/bin/ksh
    22#
    3 #--------------------------------------------------------------------------------#
     3# run_kpp4palm - script for running gasphase preprocessor
     4
     5#------------------------------------------------------------------------------#
     6# This file is part of the PALM model system.
     7#
     8# PALM is free software: you can redistribute it and/or modify it under the terms
     9# of the GNU General Public License as published by the Free Software Foundation,
     10# either version 3 of the License, or (at your option) any later version.
     11#
     12# PALM is distributed in the hope that it will be useful, but WITHOUT ANY
     13# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
     14# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
     15#
     16# You should have received a copy of the GNU General Public License along with
     17# PALM. If not, see <http://www.gnu.org/licenses/>.
     18#
     19# Copyright 2017-2017  Klaus Ketelsen and MPI-CH (April 2007)
     20# Copyright 2017-2017  Karlsruhe Institute of Technology
     21# Copyright 2017-2017  Leibniz Universitaet Hannover
     22#------------------------------------------------------------------------------#
    423#
    524# Current revisions:
     
    928# Former revisions:
    1029# -----------------
    11 # $Id: run_kpp4palm.ksh 2603 2017-11-03 17:44:45Z forkel $
     30# $Id$
     31# Initial revision
     32#
     33#
    1234#
    13 #
     35#
     36# Other notes:
     37# ------------
    1438# Small adaptations (added MECH as argument, re-introduced relative path,
    1539#                    adaption to changing kp4 to kpp4palm)
    1640# filename changed from run_kp4.ksh to run_kpp4palm.ksh
    17 #
    18 #
    19 #
    2041#
    2142# Nov. 2016: Initial Version of KPP chemistry by Klaus Ketelsen
     
    5576#    -i   DE_INDEX="YES";;          # if set, deindexing
    5677#    -f   DE_INDEX_FAST="YES";;     # if set, fast deindexing
    57 #    -k   KEEP="YES";;              # keep Working directory
     78#    -k   KEEP="NO";;               # keep Working directory
    5879#    -o   OUTDIR=$OPTARG;;          # Output directory of Geneated Code
    5980#    -p   PREFIX=$OPTARG;;          # Name Prefix
     
    6586MECH=smog
    6687
    67 while  getopts m:  opt   # get options
     88while  getopts m:k  opt   # get options
    6889do case $opt in
    6990      m)   MECH=$OPTARG;;          # mechanism name as part of mechanisms/def_[mechanism_name]
    7091
     92      k)   KEEP="-k";;             # keep Working directory
     93
    7194      \?)  print ${0##*/} "unknown option:" $OPTARG
    72            print "USAGE: ${0##*/} [ -m mechanism_name ] "
     95           print "USAGE: ${0##*/} [ -m mechanism_name] [ -k] "
    7396           exit 1;;
    7497   esac
     
    7699echo $MECH
    77100
    78 kpp4palm.ksh -d `pwd`/mechanisms/def_$MECH -k
     101kpp4palm.ksh -d `pwd`/mechanisms/def_$MECH $KEEP
Note: See TracChangeset for help on using the changeset viewer.