~ubuntu-branches/ubuntu/quantal/psicode/quantal

« back to all changes in this revision

Viewing changes to tests/rb-ccsd_t-sp/input.rb

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck, Michael Banck, Daniel Leidert
  • Date: 2009-02-23 00:12:02 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090223001202-rutldoy3dimfpesc
Tags: 3.4.0-1
* New upstream release.

[ Michael Banck ]
* debian/patches/01_DESTDIR.dpatch: Refreshed.
* debian/patches/02_FHS.dpatch: Removed, applied upstream.
* debian/patches/03_debian_docdir: Likewise.
* debian/patches/04_man.dpatch: Likewise.
* debian/patches/06_466828_fix_gcc_43_ftbfs.dpatch: Likewise.
* debian/patches/07_464867_move_executables: Fixed and refreshed.
* debian/patches/00list: Adjusted.
* debian/control: Improved description.
* debian/patches-held: Removed.
* debian/rules (install/psi3): Do not ship the ruby bindings for now.

[ Daniel Leidert ]
* debian/rules: Fix txtdir via DEB_MAKE_INSTALL_TARGET.
* debian/patches/01_DESTDIR.dpatch: Refreshed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# CCSD single point
 
2
#  This test case includes extra commands to do a complete test.
 
3
 
 
4
ESCF = -1.100153777808
 
5
ECCSD = -0.039919706944083
 
6
ENUC = 0.5291772490000
 
7
 
 
8
# Make sure we are running in Psi
 
9
if $0 != "Psi"
 
10
  puts "Not running within Psi!!!"
 
11
  exit
 
12
end
 
13
 
 
14
# Attempt to load psi3
 
15
begin
 
16
  require 'psi3'
 
17
rescue LoadError => e
 
18
  puts "Error: Unable to load psi3.rb"
 
19
  puts "       Make sure that either the binaries are installed"
 
20
  puts "       in the correct place, or that PSIDATADIR is set."
 
21
  exit 1
 
22
end
 
23
 
 
24
# Attempt to load testcases
 
25
begin
 
26
  require 'testcases'
 
27
rescue LoadError => e
 
28
  puts "Error: Unable to load testcases.rb"
 
29
  puts "       Make sure that either the binaries are installed"
 
30
  puts "       in the correct place, or that PSIDATADIR is set."
 
31
  exit 1
 
32
end
 
33
 
 
34
Psi::quiet = true
 
35
 
 
36
# Set the geometry
 
37
Psi::geometry = [
 
38
  [ "H", 0.0, 0.0, 0.0 ],
 
39
  [ "H", 0.0, 0.0, 1.0 ]
 
40
]
 
41
 
 
42
# Set the basis
 
43
Psi::basis = "cc-pVDZ"
 
44
 
 
45
# Clean Psi scratch files
 
46
clean
 
47
 
 
48
# Set the final desired wavefunction
 
49
Psi::wavefunction = "ccsd_t"
 
50
 
 
51
# Run input
 
52
input
 
53
 
 
54
# Run scf (which internally runs cints)
 
55
rhf
 
56
 
 
57
# Run ccenergy to compute ccsd energy
 
58
ccsd
 
59
 
 
60
# Clean the scratch out
 
61
clean
 
62
 
 
63
Psi::quiet = false
 
64
 
 
65
retcode = 0
 
66
retcode |= test_nuclear_repulsion(ENUC)
 
67
retcode |= test_scf_energy(ESCF)
 
68
retcode |= test_ccsd_energy(ECCSD)
 
69
 
 
70
exit retcode
 
71