~ubuntu-branches/ubuntu/karmic/psicode/karmic

« back to all changes in this revision

Viewing changes to src/lib/libiwl/wrtone.cc

  • 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
 
3
  \ingroup IWL
 
4
*/
 
5
#include <cstdio>
 
6
#include <libpsio/psio.h>
 
7
#include "iwl.h"
 
8
#include "iwl.hpp"
 
9
 
 
10
using namespace psi;
 
11
 
 
12
void IWL::write_one(PSIO *psio, int itap, const char *label, int ntri, double *onel_ints)
 
13
{
 
14
    psio->open(itap, PSIO_OPEN_OLD);
 
15
    psio->write_entry(itap, label, (char*)onel_ints, ntri*sizeof(double));
 
16
    psio->close(itap, 1);
 
17
}
 
18
 
 
19
extern "C" {
 
20
        
 
21
/*!
 
22
** IWL_WRTONE()
 
23
**
 
24
** This function writes one-electron integrals.
 
25
**
 
26
**   itap       = tape to read ints from
 
27
**   label      = the PSIO label
 
28
**   ntri       = the size of the array (lower triangle)
 
29
**   onel_ints  = array to hold the one-electron integrals.
 
30
**
 
31
** David Sherrill, March 1995
 
32
** Revised by TDC, June 2001
 
33
** \ingroup IWL
 
34
*/
 
35
void iwl_wrtone(int itap, const char *label, int ntri, double *onel_ints)
 
36
{
 
37
  psio_open(itap, PSIO_OPEN_OLD);
 
38
  psio_write_entry(itap, label, (char *) onel_ints, ntri*sizeof(double));
 
39
  psio_close(itap,1);
 
40
}
 
41
 
 
42
} /* extern "C" */