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

« back to all changes in this revision

Viewing changes to src/lib/libdpd/file4_mat_irrep_row_zero.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
/*! \file
 
2
    \ingroup DPD
 
3
    \brief Enter brief description of file here 
 
4
*/
 
5
#include <cstdio>
 
6
#include <libciomr/libciomr.h>
 
7
#include "dpd.h"
 
8
 
 
9
extern "C" {
 
10
 
 
11
int dpd_file4_mat_irrep_row_zero(dpdfile4 *File, int irrep, int row)
 
12
{
 
13
  int coltot, my_irrep;
 
14
 
 
15
  if(File->incore) return 0;  /* Don't do this if the file is in core */
 
16
 
 
17
  my_irrep = File->my_irrep;
 
18
  
 
19
  coltot = File->params->coltot[irrep^my_irrep];
 
20
 
 
21
  if(coltot)
 
22
      zero_arr(File->matrix[irrep][0], coltot);
 
23
 
 
24
  return 0;
 
25
 
 
26
}
 
27
 
 
28
} /* extern "C" */