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

« back to all changes in this revision

Viewing changes to src/lib/libiwl/wrttwo.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 <cmath>
 
7
#include <libciomr/libciomr.h>
 
8
#include "iwl.h"
 
9
#include "iwl.hpp"
 
10
 
 
11
using namespace psi;
 
12
  
 
13
void IWL::write_two(PSIO *psio, int itap, int nbfso, double *ints, int *ioff, 
 
14
    double toler, int printflg, FILE *outfile)
 
15
{
 
16
    IWL Buf(psio, itap, toler, 0, 0);
 
17
    Buf.write_all(nbfso, ints, ioff, printflg, outfile);
 
18
    Buf.flush(1);
 
19
}
 
20
 
 
21
extern "C" {
 
22
        
 
23
/*!
 
24
** iwl_wrttwo()
 
25
**
 
26
** Write two electron ints to output in lexical order
 
27
** The "iwl" stands for "integrals with labels," and this is the proposed
 
28
** new standard for storing two-electron integrals and their (absolute)
 
29
** orbital labels.  This function closes the output file when finished.
 
30
**
 
31
**    \param itap     = unit to write to
 
32
**    \param nbfso    = number of basis functions in symmetry orbitals
 
33
**    \param ints     = two electron integrals 
 
34
**    \param ioff     = the old ioff array for lexical ordering
 
35
**    \param printflg = print flag (1 or 0)
 
36
**    \param outfile  =  output file
 
37
**
 
38
** Revised 6/27/96 by CDS
 
39
** \ingroup IWL
 
40
*/
 
41
void iwl_wrttwo(int itap, int nbfso, double *ints, int *ioff, double toler, 
 
42
                int printflg, FILE *outfile)
 
43
{
 
44
  struct iwlbuf Buf;
 
45
 
 
46
  iwl_buf_init(&Buf, itap, toler, 0, 0);
 
47
  iwl_buf_wrt_all(&Buf, nbfso, ints, ioff, printflg, outfile);
 
48
  iwl_buf_flush(&Buf, 1);
 
49
  iwl_buf_close(&Buf, 1);
 
50
 
 
51
}
 
52
 
 
53
} /* extern "C" */