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

« back to all changes in this revision

Viewing changes to src/lib/libchkpt/rottype.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_rottype(void)
 
17
{
 
18
        int rottype;
 
19
        char *keyword;
 
20
        keyword = build_keyword("Rotor type");
 
21
 
 
22
        psio->read_entry(PSIF_CHKPT, keyword, (char *) &rottype, sizeof(int));
 
23
 
 
24
        free(keyword);
 
25
        return rottype;
 
26
}
 
27
 
 
28
void Chkpt::wt_rottype(int rottype)
 
29
{
 
30
        char *keyword;
 
31
        keyword = build_keyword("Rotor type");
 
32
 
 
33
        psio->write_entry(PSIF_CHKPT, keyword, (char *) &rottype, sizeof(int));
 
34
 
 
35
        free(keyword);
 
36
}
 
37
 
 
38
extern "C" {
 
39
/*!
 
40
** int chkpt_rd_rottype()  
 
41
** Reads in type of the rigid rotor molecule represents.
 
42
**
 
43
** returns: rottype = type of rigid rotor. Allowed values are:
 
44
**            0 - asymmetric top
 
45
**            1 - symmetric top
 
46
**            2 - spherical top
 
47
**            3 - linear molecule
 
48
**            6 - atom
 
49
** \ingroup CHKPT
 
50
*/
 
51
        int chkpt_rd_rottype(void)
 
52
        {
 
53
                return _default_chkpt_lib_->rd_rottype();
 
54
        }
 
55
 
 
56
/*!
 
57
** void chkpt_wt_rottype(int)  
 
58
** Reads in type of the rigid rotor molecule represents.
 
59
**
 
60
** \param rottype = type of rigid rotor. Allowed values are:
 
61
**            0 - asymmetric top
 
62
**            1 - symmetric top
 
63
**            2 - spherical top
 
64
**            3 - linear molecule
 
65
**            6 - atom
 
66
**
 
67
** returns: none
 
68
** \ingroup CHKPT
 
69
*/
 
70
        void chkpt_wt_rottype(int rottype)
 
71
        {
 
72
                _default_chkpt_lib_->wt_rottype(rottype);
 
73
        }
 
74
}