~ubuntu-branches/ubuntu/quantal/psicode/quantal

« back to all changes in this revision

Viewing changes to src/lib/libdpd/buf4_mat_irrep_init_block.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
 
#include <stdio.h>
2
 
#include <libciomr/libciomr.h>
3
 
#include "dpd.h"
4
 
#define EXTERN
5
 
#include "dpd.gbl"
6
 
 
7
 
/* dpd_buf4_mat_irrep_init_block(): Allocates and initializes memory
8
 
** for a subblock of a matrix for a single irrep of a dpd four-index
9
 
** buffer.
10
 
**
11
 
** Arguments:
12
 
**   dpdbuf4 *Buf: A pointer to the input dpdbuf.
13
 
**   int irrep: The irrep number to be prepared.
14
 
**   int num_pq: The number of rows needed.
15
 
**
16
 
*/
17
 
 
18
 
int dpd_buf4_mat_irrep_init_block(dpdbuf4 *Buf, int irrep, int num_pq)
19
 
{
20
 
  int all_buf_irrep;
21
 
  all_buf_irrep = Buf->file.my_irrep; 
22
 
 
23
 
  Buf->matrix[irrep] = dpd_block_matrix(num_pq,Buf->params->coltot[irrep^all_buf_irrep]);
24
 
 
25
 
  return 0;
26
 
 
27
 
}