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

« back to all changes in this revision

Viewing changes to src/lib/libchkpt/ecorr.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>
22
23
double chkpt_rd_ecorr(void)
23
24
{
24
25
  double ecorr;
25
 
 
26
 
  psio_read_entry(PSIF_CHKPT, "::Correlation energy", (char *) &ecorr,
27
 
                  sizeof(double));
28
 
 
 
26
  char *keyword;
 
27
  keyword = chkpt_build_keyword("Correlation energy");
 
28
 
 
29
  psio_read_entry(PSIF_CHKPT, keyword, (char *) &ecorr,
 
30
    sizeof(double));
 
31
 
 
32
  free(keyword);
29
33
  return ecorr;
30
34
}
31
35
 
42
46
*/
43
47
void chkpt_wt_ecorr(double ecorr)
44
48
{
45
 
  psio_write_entry(PSIF_CHKPT, "::Correlation energy", (char *) &ecorr,
46
 
                   sizeof(double));
 
49
  char *keyword;
 
50
  keyword = chkpt_build_keyword("Correlation energy");
 
51
 
 
52
  psio_write_entry(PSIF_CHKPT, keyword, (char *) &ecorr,
 
53
    sizeof(double));
 
54
 
 
55
  free(keyword);
47
56
}
48
57