#!/bin/csh -f if ( -e configure.kpp ) then rm -f configure.kpp endif echo "# DO NOT EDIT! Placeholder for automatically generated file" >& configure.kpp # remove the traces of KPP if (-e ../Makefile_org ) then cp -f ../Makefile_org ../Makefile rm -f ../Makefile_org endif if ( -e if_required ) then rm if_required endif touch if_required # remove automatically genereated files in chem directory rm -f ../*kpp* >>& if_required #kpp set k_dirs = ( kpp/* ) foreach kdir ( $k_dirs ) echo $kdir >> if_required ( cd $kdir; touch Makefile.defs; make clean ) >>& if_required ( cd $kdir; touch Makefile.defs; rm -f Makefile.defs ) >>& if_required end # remove links in util/wkc ( cd util/wkc; linker.csh unlink ) >>& if_required #coupler ( cd util/wkc; make clean; make -f Makefile.tuv clean ) >>& if_required # mechanisms set m_dirs = ( mechanisms/* ) foreach mdir ( $m_dirs ) echo $mdir >>& if_required ( cd $mdir; /bin/rm -f *.f90 *.map Makefil* *~ core.* ) >>& if_required end rm -f ../../Registry_tmp.*_wk* >>& if_required #./documentation/latex/clean # configure file rm -f configure.kpp if ( -e util/mod_registry.temp ) then rm -f util/mod_registry.temp endif exit 0