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

« back to all changes in this revision

Viewing changes to src/lib/libchkpt/efzc.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>
20
21
double chkpt_rd_efzc(void)
21
22
{
22
23
  double efzc;
23
 
 
24
 
  psio_read_entry(PSIF_CHKPT, "::Frozen core energy", (char *) &efzc, 
25
 
                  sizeof(double));
26
 
 
 
24
  char *keyword;
 
25
  keyword = chkpt_build_keyword("Frozen core energy");
 
26
 
 
27
  psio_read_entry(PSIF_CHKPT, keyword, (char *) &efzc, sizeof(double));
 
28
 
 
29
  free(keyword);
27
30
  return efzc;
28
31
}
29
32
 
38
41
*/
39
42
void chkpt_wt_efzc(double efzc)
40
43
{
41
 
  psio_write_entry(PSIF_CHKPT, "::Frozen core energy", (char *) &efzc, 
42
 
                   sizeof(double));
 
44
  char *keyword;
 
45
  keyword = chkpt_build_keyword("Frozen core energy");
 
46
 
 
47
  psio_write_entry(PSIF_CHKPT, keyword, (char *) &efzc, 
 
48
    sizeof(double));
 
49
 
 
50
  free(keyword);
43
51
}
44
52