#!/bin/csh # script to run an inital mopac optimization and then a DeFT optimization # followed by a GAMESS single point NBO population analysis set JOB='web'$01 # header for html output errors set H='Content-type: text/html\n\n
' echo '' setenv my_directory $HOME setenv DeFT_directory /usr/local/bin setenv temp_directory /var/tmp/tmp$$ mkdir $temp_directory # default parameters for md.pl are used unless convergence problems arise set levshft = 0 DeFT: cd $temp_directory touch core chmod u+w core touch $my_directory/restart_$input_file cp $my_directory/restart_$input_file old_restart cp $my_directory/$input_file input cp $DeFT_directory/bases bases cp $my_directory/hessian hessian chmod u+w bases $DeFT_directory/DeFT < input > $my_directory/$input_file.dft cp new_restart $my_directory/restart_$input_file rm core espot bases input hessian old_restart new_restart fort.* cd $my_directory # check for multiplicity error set con = `grep "make sense" $input_file.dft` if ( $#con != 0 ) then echo $H echo 'Sorry the charge and multiplicity do not agree