~ubuntu-branches/ubuntu/precise/psicode/precise

« back to all changes in this revision

Viewing changes to src/lib/libchkpt/phase_check.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 phase_check.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_phase_check()
13
 
**
14
 
** Reads a boolean flag indicating whether the SCF code was able to correct
15
 
** the phases of the molecular orbitals relative to the guess orbitals.  This
16
 
** is important for restarting correlated wfn calculations from earlier vectors.
17
 
**
18
 
** arguments: none
19
 
**
20
 
** returns: pcheck = Phase check flag (1 if phase has been checked, else 0)
21
 
**
22
 
** \ingroup (CHKPT)
23
 
*/
24
 
int chkpt_rd_phase_check(void)
25
 
{
26
 
  int pcheck;
27
 
  char *keyword;
28
 
  keyword = chkpt_build_keyword("Phase check");
29
 
 
30
 
  psio_read_entry(PSIF_CHKPT, keyword, (char *) &pcheck, sizeof(int));
31
 
 
32
 
  free(keyword);
33
 
  return pcheck;
34
 
}
35
 
 
36
 
 
37
 
/*!
38
 
** void chkpt_wt_phase_check(int)
39
 
**
40
 
** Reads a boolean flag indicating whether the SCF code was able to correct
41
 
** the phases of the molecular orbitals relative to the guess orbitals.  This
42
 
** is important for restarting correlated wfn calculations from earlier vectors.
43
 
**
44
 
** \param pcheck = Phase check flag (1 if phase has been checked, else 0)
45
 
**
46
 
** returns: none
47
 
** 
48
 
** \ingroup (CHKPT)
49
 
*/
50
 
 
51
 
void chkpt_wt_phase_check(int pcheck)
52
 
{
53
 
  char *keyword;
54
 
  keyword = chkpt_build_keyword("Phase check");
55
 
 
56
 
  psio_write_entry(PSIF_CHKPT, keyword, (char *) &pcheck, sizeof(int));
57
 
 
58
 
  free(keyword);
59
 
}