Hi David,
You might be able to achieve this by running define in a scripted way. I'm attaching below here a script named "defrec", which shows how it is done. Basically, just two commands are needed, so the script is bit overkill, but at the same time it also includes short instructions on how to use it.
While the above approach might be what you are looking for, resetting the MOs during the excited state optimization sounds a bit dangerous to me. I have the feeling that perhaps there would be some better way to fix the issue.
Best wishes,
Antti
#!/bin/bash
# defrec 2008-07-01 AK
# defrec: Record define session to file for later usage
OUTNAME=define.in
program_usage(){
cat <<EOF
*****************************************************************
* defrec: Record define session to file for later usage *
*****************************************************************
Usage: defrec
- defrec records all commands given to define into file $OUTNAME
- Useful when you need to construct many similar Turbomole jobs.
- After define finishes, finish defrec with one more Return (or Ctrl+C)
- The command file $OUTNAME can then be re-executed later:
define < $OUTNAME
EOF
}
# Check parameters
while [[ $# -gt 0 ]]
do
case "$1" in
"-h" | "-help" | "--help" ) program_usage ; exit 1 ;;
* ) program_usage ; exit 1 ;;
esac
done
tee $OUTNAME | define