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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2006-09-10 14:01:33 UTC
  • Revision ID: james.westby@ubuntu.com-20060910140133-ib2j86trekykfsfv
Tags: upstream-3.2.3
ImportĀ upstreamĀ versionĀ 3.2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*!
 
2
  \file nirreps.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_nirreps()  
 
13
** Reads in the total number of irreducible representations
 
14
** in the point group in which the molecule is being considered.
 
15
**
 
16
** returns: nirreps = total number of irreducible representations.
 
17
** \ingroup (CHKPT)
 
18
*/
 
19
 
 
20
int chkpt_rd_nirreps(void)
 
21
{
 
22
  int nirreps;
 
23
  char *key;
 
24
 
 
25
  key = chkpt_build_keyword("Num. irreps");
 
26
  psio_read_entry(PSIF_CHKPT, key, (char *) &nirreps, sizeof(int));
 
27
  free(key);
 
28
  return nirreps;
 
29
}
 
30
 
 
31
 
 
32
/*!
 
33
** void chkpt_wt_nirreps(int)  
 
34
** Writes out the total number of irreducible representations
 
35
** in the point group in which the molecule is being considered.
 
36
**
 
37
** \param nirreps = total number of irreducible representations.
 
38
**
 
39
** returns: none
 
40
** \ingroup (CHKPT)
 
41
*/
 
42
 
 
43
void chkpt_wt_nirreps(int nirreps)
 
44
{
 
45
  char *key;
 
46
 
 
47
  key = chkpt_build_keyword("Num. irreps");
 
48
  psio_write_entry(PSIF_CHKPT, key, (char *) &nirreps, sizeof(int));
 
49
  free(key);
 
50
}