~ubuntu-branches/ubuntu/karmic/psicode/karmic

« back to all changes in this revision

Viewing changes to src/bin/mcscf/scf_compute_energy.cc

  • 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
#include <iostream>
 
2
 
 
3
#include "scf.h"
 
4
 
 
5
extern FILE* outfile;
 
6
 
 
7
namespace psi{ namespace mcscf{
 
8
 
 
9
void SCF::compute_energy()
 
10
{
 
11
  fprintf(outfile,"\n\n  Running an SCF calculation");
 
12
 
 
13
  // Read the one electron integrals
 
14
  read_so_oei();
 
15
 
 
16
  // Read the two electron integrals
 
17
  // and construct the PK and K matrices
 
18
  read_so_tei();
 
19
 
 
20
  // Construct the S^-1/2 Matrix
 
21
  construct_S_inverse_sqrt();
 
22
 
 
23
  // Guess C
 
24
  initial_guess();
 
25
 
 
26
  // Iterate the SCF equations
 
27
  iterate_scf_equations();
 
28
 
 
29
  // Check the orthonormality of the MOs
 
30
  check_orthonormality();
 
31
 
 
32
  // Canonicalize MOs
 
33
  canonicalize_MO();
 
34
 
 
35
  // Print eigenvectors and MOs
 
36
  print_eigenvectors_and_MO();
 
37
 
 
38
  // Canonicalize MOs
 
39
  save_info();
 
40
}
 
41
 
 
42
}} /* End Namespaces */