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

« back to all changes in this revision

Viewing changes to src/bin/cints/Fock/scf_parsing.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
/*! \file
 
2
    \ingroup CINTS
 
3
    \brief Enter brief description of file here 
 
4
*/
 
5
#include<cstdio>
 
6
#include<cstring>
 
7
#include<cmath>
 
8
#include<libipv1/ip_lib.h>
 
9
#include<libint/libint.h>
 
10
 
 
11
#include"defines.h"
 
12
#define EXTERN
 
13
#include"global.h"
 
14
#include <stdexcept>
 
15
#include"dft_init.h"
 
16
 
 
17
namespace psi { namespace CINTS {
 
18
 
 
19
void scf_parsing(void)
 
20
{
 
21
    int errcod;
 
22
    char *refstring;
 
23
 
 
24
    UserOptions.make_oei = 0;
 
25
    UserOptions.make_eri = 0;
 
26
    UserOptions.make_fock = 1;
 
27
    UserOptions.print_lvl = 0;
 
28
    UserOptions.symm_ints = 0;
 
29
    UserOptions.make_dft = 0;
 
30
    UserOptions.hf_exch = 1.0;
 
31
    errcod = ip_string("REFERENCE",&refstring,0);
 
32
    if (errcod != IPE_OK)
 
33
        throw std::domain_error("REFERENCE keyword is missing");
 
34
    else if (!strcmp(refstring,"RHF") || !strcmp(refstring,""))
 
35
        UserOptions.reftype = rhf;
 
36
    else if (!strcmp(refstring,"ROHF"))
 
37
        UserOptions.reftype = rohf;
 
38
    else if (!strcmp(refstring,"UHF"))
 
39
        UserOptions.reftype = uhf;
 
40
    else if (!strcmp(refstring,"RKS")){
 
41
        UserOptions.reftype = rhf;
 
42
        UserOptions.make_dft = 1;
 
43
        dft_init();
 
44
    }
 
45
    else if (!strcmp(refstring,"UKS")){
 
46
        UserOptions.reftype = uhf;
 
47
        UserOptions.make_dft = 1;
 
48
        dft_init();
 
49
    }
 
50
    else
 
51
        throw std::domain_error("The specified REFERENCE not implemented");
 
52
}
 
53
};};