4 if ( $#argv != 1 ) then
5 echo Usage
: create_inc_files.csh name_of_mechanism
9 set incm_dir
= inc
/${model}
12 # make directory (if not already there)
13 if ( ! -e inc
/${model} ) then
18 # if not already there, then put empty .inc files into directory
20 set inc_list
= "u l b a ibu ib ia e"
22 foreach inam
( $inc_list )
23 if (! -e ${incm_dir}/kpp_mechd_${inam}_${model}.inc
) then
24 echo ! > ${incm_dir}/kpp_mechd_${inam}_${model}.inc
28 if (! -e ${incm_dir}/extra_args_to_update_rconst_
${model}.inc
) then
29 echo ! > ${incm_dir}/extra_args_to_update_rconst_
${model}.inc
33 if (! -e ${incm_dir}/extra_args_update_rconst_
${model}.inc
) then
34 echo ! > ${incm_dir}/extra_args_update_rconst_
${model}.inc
37 if (! -e ${incm_dir}/extra_decls_update_rconst_
${model}.inc
) then
38 echo ! > ${incm_dir}/extra_decls_update_rconst_
${model}.inc
43 # link .inc files in chem/KPP/$(model)/inc
46 set kincfiles
= ( ${incm_dir}/*.inc
)
50 foreach kincfile
( $kincfiles )
52 set incf
= `echo $kincfile:t`
55 if ( ! -e ${WRFC_ROOT}/inc
/${incf} ) then
57 echo ln -s ..
/chem
/${WKC_DIRNAME}/${kincfile} ${WRFC_ROOT}/inc
58 ln -s ..
/chem
/${WKC_DIRNAME}/${kincfile} ${WRFC_ROOT}/inc