~ubuntu-branches/ubuntu/trusty/psicode/trusty

« back to all changes in this revision

Viewing changes to src/lib/libchkpt/escf.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 escf.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
 
** chkpt_rd_escf(): Reads in the scf energy.
13
 
**
14
 
**  takes no arguments.
15
 
**
16
 
**  returns: double escf  the scf energy.
17
 
** \ingroup (CHKPT)
18
 
*/
19
 
 
20
 
double chkpt_rd_escf(void)
21
 
{
22
 
  double escf;
23
 
  char *keyword;
24
 
  keyword = chkpt_build_keyword("SCF energy");
25
 
 
26
 
  psio_read_entry(PSIF_CHKPT, keyword, (char *) &escf, sizeof(double));
27
 
 
28
 
  free(keyword);
29
 
  return escf;
30
 
}
31
 
 
32
 
/*!
33
 
** chkpt_wt_escf(): Writes out the scf energy.
34
 
**
35
 
**  arguments: 
36
 
**   \param double escf  the scf energy.
37
 
**
38
 
** returns: none
39
 
** \ingroup (CHKPT)
40
 
*/
41
 
 
42
 
void chkpt_wt_escf(double escf)
43
 
{
44
 
  char *keyword;
45
 
  keyword = chkpt_build_keyword("SCF energy");
46
 
 
47
 
  psio_write_entry(PSIF_CHKPT, keyword, (char *) &escf, sizeof(double));
48
 
 
49
 
  free(keyword);
50
 
}