~ubuntu-branches/ubuntu/vivid/psicode/vivid

« back to all changes in this revision

Viewing changes to src/lib/libdpd/buf4_scmcopy.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2008-06-07 16:49:57 UTC
  • mfrom: (2.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080607164957-8pifvb133yjlkagn
Tags: 3.3.0-3
* debian/rules (DEB_MAKE_CHECK_TARGET): Do not abort test suite on
  failures.
* debian/rules (DEB_CONFIGURE_EXTRA_FLAGS): Set ${bindir} to /usr/lib/psi.
* debian/rules (install/psi3): Move psi3 file to /usr/bin.
* debian/patches/07_464867_move_executables.dpatch: New patch, add
  /usr/lib/psi to the $PATH, so that the moved executables are found.
  (closes: #464867)
* debian/patches/00list: Adjusted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
  int nbuckets, incore, n, size;
24
24
  long int memoryd, rows_per_bucket, rows_left;
25
25
  dpdbuf4 OutBuf;
26
 
  double *X;
27
26
 
28
27
  all_buf_irrep = InBuf->file.my_irrep;
29
28
 
45
44
 
46
45
      if(!rows_per_bucket) dpd_error("buf4_scmcopy: Not enough memory for one row!", stderr);
47
46
 
48
 
      nbuckets = ceil(((double) InBuf->params->rowtot[h])/((double) rows_per_bucket));
 
47
      nbuckets = (int) ceil(((double) InBuf->params->rowtot[h])/((double) rows_per_bucket));
49
48
 
50
49
      rows_left = InBuf->params->rowtot[h] % rows_per_bucket;
51
50
 
52
51
      incore = 1;
53
52
      if(nbuckets > 1) {
54
53
        incore = 0;
55
 
#if 1
 
54
#if DPD_DEBUG
56
55
        fprintf(stderr, "buf4_scmcopy: memory information.\n");
57
56
        fprintf(stderr, "buf4_scmcopy: rowtot[%d] = %d.\n", h, InBuf->params->rowtot[h]);
58
57
        fprintf(stderr, "buf4_scmcopy: nbuckets = %d\n", nbuckets);