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

« back to all changes in this revision

Viewing changes to src/lib/libchkpt/ncalcs.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
/*!
 
2
  \file
 
3
  \ingroup CHKPT
 
4
*/
 
5
 
 
6
#include <cstdlib>
 
7
#include <psifiles.h>
 
8
#include <libpsio/psio.hpp>
 
9
extern "C" {
 
10
#include <libchkpt/chkpt.h>
 
11
}
 
12
#include <libchkpt/chkpt.hpp>
 
13
 
 
14
using namespace psi;
 
15
 
 
16
int Chkpt::rd_ncalcs(void)
 
17
{
 
18
        char *keyword_mo, *keyword_alpha_mo;
 
19
        keyword_mo = build_keyword("MO coefficients");
 
20
        keyword_alpha_mo = build_keyword("Alpha MO coefficients");
 
21
 
 
22
        if (psio->tocscan(PSIF_CHKPT, keyword_mo) == NULL &&
 
23
                psio->tocscan(PSIF_CHKPT, keyword_alpha_mo) == NULL)
 
24
                return 0;
 
25
        else
 
26
                return 1;
 
27
 
 
28
        free(keyword_mo);
 
29
        free(keyword_alpha_mo);
 
30
}
 
31
 
 
32
extern "C" {
 
33
/*!
 
34
** int chkpt_rd_ncalcs()  
 
35
** Reads in the total number of HF wave functions.
 
36
**
 
37
** returns: ncalcs = total number of HF wave functions in checkpoint
 
38
** \ingroup CHKPT
 
39
*/
 
40
        int chkpt_rd_ncalcs(void)
 
41
        {
 
42
                return _default_chkpt_lib_->rd_ncalcs();
 
43
        }
 
44
}
 
45