- Timestamp:
- Dec 15, 2017 12:38:41 PM (7 years ago)
- 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 1 1 #!/usr/bin/ksh 2 2 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 #------------------------------------------------------------------------------# 12 23 # 13 24 # Current revisions: … … 17 28 # Former revisions: 18 29 # ----------------- 19 # $Id$ 20 # 21 # 30 # $Id$ 31 # Initial revision 32 # 33 # 34 # 35 # 36 # Other notes: 37 # ------------# 22 38 # Re-introduced relative path for KPP_HOME 23 39 # Subroutine list adapted to lowercase subroutine names … … 26 42 # Renamed this fikle from kp4/ksh to kpp4kpp.ksh 27 43 # changed location of def_mechanism directories to GASPHASE_PREPROC/mechanisms 28 #29 #30 44 # 31 45 # Nov. 2016: Initial Version of KPP chemistry convertor by Klaus Ketelsen … … 49 63 # Default 50 64 51 OUTDIR=`pwd`/../ SOURCE65 OUTDIR=`pwd`/../../../SOURCE 52 66 OUTFILE=chem_gasphase_mod 53 67 DEFDIR=`pwd`/mechanisms/def_smog -
palm/trunk/UTIL/chemistry/gasphase_preproc/run_kpp4palm.ksh
- Property svn:keywords set to Id
r2696 r2699 1 1 #!/bin/ksh 2 2 # 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 #------------------------------------------------------------------------------# 4 23 # 5 24 # Current revisions: … … 9 28 # Former revisions: 10 29 # ----------------- 11 # $Id: run_kpp4palm.ksh 2603 2017-11-03 17:44:45Z forkel $ 30 # $Id$ 31 # Initial revision 32 # 33 # 12 34 # 13 # 35 # 36 # Other notes: 37 # ------------ 14 38 # Small adaptations (added MECH as argument, re-introduced relative path, 15 39 # adaption to changing kp4 to kpp4palm) 16 40 # filename changed from run_kp4.ksh to run_kpp4palm.ksh 17 #18 #19 #20 41 # 21 42 # Nov. 2016: Initial Version of KPP chemistry by Klaus Ketelsen … … 55 76 # -i DE_INDEX="YES";; # if set, deindexing 56 77 # -f DE_INDEX_FAST="YES";; # if set, fast deindexing 57 # -k KEEP=" YES";;# keep Working directory78 # -k KEEP="NO";; # keep Working directory 58 79 # -o OUTDIR=$OPTARG;; # Output directory of Geneated Code 59 80 # -p PREFIX=$OPTARG;; # Name Prefix … … 65 86 MECH=smog 66 87 67 while getopts m: opt # get options88 while getopts m:k opt # get options 68 89 do case $opt in 69 90 m) MECH=$OPTARG;; # mechanism name as part of mechanisms/def_[mechanism_name] 70 91 92 k) KEEP="-k";; # keep Working directory 93 71 94 \?) print ${0##*/} "unknown option:" $OPTARG 72 print "USAGE: ${0##*/} [ -m mechanism_name 95 print "USAGE: ${0##*/} [ -m mechanism_name] [ -k] " 73 96 exit 1;; 74 97 esac … … 76 99 echo $MECH 77 100 78 kpp4palm.ksh -d `pwd`/mechanisms/def_$MECH -k101 kpp4palm.ksh -d `pwd`/mechanisms/def_$MECH $KEEP
Note: See TracChangeset
for help on using the changeset viewer.