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

« back to all changes in this revision

Viewing changes to src/lib/libchkpt/num_unique_atom.c

  • 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 num_unique_atom.c
3
 
  \ingroup (CHKPT)
4
 
*/
5
 
 
6
 
#include <stdlib.h>
7
 
#include "chkpt.h"
8
 
#include <psifiles.h>
9
 
#include <libpsio/psio.h>
10
 
 
11
 
/*!
12
 
** int chkpt_rd_num_unique_atom()  
13
 
** Reads in the number of symmetry unique atoms.
14
 
**
15
 
** returns: nunique = number of symmetry unique atoms.
16
 
** \ingroup (CHKPT)
17
 
*/
18
 
 
19
 
int chkpt_rd_num_unique_atom(void)
20
 
{
21
 
  int nunique;
22
 
  char *keyword;
23
 
  keyword = chkpt_build_keyword("Num. unique atoms");
24
 
 
25
 
  psio_read_entry(PSIF_CHKPT, keyword, (char *) &nunique, sizeof(int));
26
 
 
27
 
  free(keyword);
28
 
  return nunique;
29
 
}
30
 
 
31
 
 
32
 
/*!
33
 
** void chkpt_wt_num_unique_atom(int)  
34
 
** Writes out the number of symmetry unique atoms.
35
 
**
36
 
** \param nunique = number of symmetry unique atoms.
37
 
**
38
 
** returns: none
39
 
** \ingroup (CHKPT)
40
 
*/
41
 
 
42
 
void chkpt_wt_num_unique_atom(int nunique)
43
 
{
44
 
  char *keyword;
45
 
  keyword = chkpt_build_keyword("Num. unique atoms");
46
 
 
47
 
  psio_write_entry(PSIF_CHKPT, keyword, (char *) &nunique, sizeof(int));
48
 
 
49
 
  free(keyword);
50
 
}