~ubuntu-branches/ubuntu/vivid/psicode/vivid

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2008-06-07 16:49:57 UTC
  • mfrom: (2.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080607164957-8pifvb133yjlkagn
Tags: 3.3.0-3
* debian/rules (DEB_MAKE_CHECK_TARGET): Do not abort test suite on
  failures.
* debian/rules (DEB_CONFIGURE_EXTRA_FLAGS): Set ${bindir} to /usr/lib/psi.
* debian/rules (install/psi3): Move psi3 file to /usr/bin.
* debian/patches/07_464867_move_executables.dpatch: New patch, add
  /usr/lib/psi to the $PATH, so that the moved executables are found.
  (closes: #464867)
* debian/patches/00list: Adjusted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
*/
5
5
 
6
6
#include <stdio.h>
 
7
#include <stdlib.h>
7
8
#include "chkpt.h"
8
9
#include <psifiles.h>
9
10
#include <libciomr/libciomr.h>
21
22
double chkpt_rd_eref(void)
22
23
{
23
24
  double eref;
24
 
 
25
 
  psio_read_entry(PSIF_CHKPT, "::Reference energy", (char *) &eref, 
26
 
                  sizeof(double));
27
 
 
 
25
  char *keyword;
 
26
  keyword = chkpt_build_keyword("Reference energy");
 
27
 
 
28
  psio_read_entry(PSIF_CHKPT, keyword, (char *) &eref, sizeof(double));
 
29
 
 
30
  free(keyword);
28
31
  return eref;
29
32
}
30
33
 
40
43
*/
41
44
void chkpt_wt_eref(double eref)
42
45
{
43
 
  psio_write_entry(PSIF_CHKPT, "::Reference energy", (char *) &eref, 
 
46
  char *keyword;
 
47
  keyword = chkpt_build_keyword("Reference energy");
 
48
 
 
49
  psio_write_entry(PSIF_CHKPT, keyword, (char *) &eref, 
44
50
                   sizeof(double));
 
51
 
 
52
  free(keyword);
45
53
}
46