NWChem/QA/tests/h2o_selci/h2o_selci.nw
Huub Van Dam 97f303e6f8 HvD: In the CVS era the $Id: $ tags in the source code files would
automatically be expanded to include useful information about the
checkin (including the file's revision number). With the switch over
to SVN this was lost because SVN only does this expansion if you 
explicitly ask for it (for every single file). 

I have added a script to the contrib directory that sets the appropriate
property to get SVN to do this expansion. This script will make it easy
to do this every time new source files are added. It is called
svn_expand_Id, the script contains some comments that explain the issue
and how it addresses this.  

This checkin sets this property for a subset of the relevant files
(trying to commit all files at once failed with svn crashing). 
In future the script will only affect those files for which the property
was not set before.
2010-10-29 18:04:21 +00:00

65 lines
1.9 KiB
Text

# $Id$
echo
# Selected CI with perturbation correction (1 frozen core) geometry
# optimization of the second 1A1 state of H2O in a 6-31g* basis in C2v.
# (the final geometry is linear, one component of a linear 1PI state)
# There are two tasks. The first defines the CI+PT wavefunction at the
# initial geometry. The second performs the optimization.
# Because only totally symmetric modes have non-zero gradients and the
# CI+PT also uses symmetry, the speed-up from using symmetry with numerical
# derivatives is proportional to the square of the number of irreducible
# representations.
# There is no print control in the CI so you'll get LOTS of output
start h2o_selcis
title "Water CI+PT geometry optimization"
geometry
symmetry c2v
O 0 0 0.738
H 0 1.430 -0.369
end
set "ao basis" 6-31g*
basis 6-31g* nosegment noprint
O library 6-31g*
H library 6-31g*
end
scf; thresh 1e-6; end
# First form initial CI reference space starting from all
# single excitations from the SCF and then perturbation selecting
# using a threshold of 0.0001 three times -- after this the
# reference should be self consistent. Compute the first three
# roots to have some confidence that we have the real second root.
set fourindex:occ_frozen 1
set selci:exci 1
set selci:mode select
set "selci:selection thresholds" 0.0001 0.0001 0.0001
set selci:nroot 3
#IMPORTANT: regenerate moinst file (don't reuse)
set selci:moints:force logical .true.
title "case c2: energy with selected CI module"
task selci
# Now optimize using the CI+PT energy of the second root
# Need to lock the SCF orbitals and CI reference space
# and force regeneration of the MO integrals at each step
set selci:nroot 2
set selci:update .false.
set "selci:moints:force" true
scf; print low; lock; end
title "case c3: optimization with selected CI+PT energy"
task selci optimize # This will be with numerical derivatives