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

« back to all changes in this revision

Viewing changes to src/lib/libdpd/file2_print.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 "dpd.h"
3
 
 
4
 
/* dpd_file2_print(): Prints out data for all irreps of a two-index dpdfile.
5
 
**
6
 
** Arguments:
7
 
**   struct dpdfile2 *File: A pointer to the dpdfile to be printed.
8
 
**   FILE *outfile: The formatted output file stream.
9
 
*/
10
 
 
11
 
int dpd_file2_print(dpdfile2 *File, FILE *outfile)
12
 
{
13
 
  int i, my_irrep;
14
 
  dpdparams2 *Params;
15
 
 
16
 
  my_irrep = File->my_irrep;
17
 
  Params = File->params;
18
 
 
19
 
  fprintf(outfile, "\n\tDPD File2: %s\n", File->label);
20
 
  fprintf(outfile,   "\tDPD Parameters:\n");
21
 
  fprintf(outfile,   "\t------------------\n");
22
 
  fprintf(outfile,   "\tpnum = %d   qnum = %d   irrep = %d \n",
23
 
      Params->pnum, Params->qnum, File->my_irrep);
24
 
  fprintf(outfile,   "\tIrreps = %1d\n\n", Params->nirreps);
25
 
  fprintf(outfile, "\t   Row and column dimensions for DPD Block:\n");
26
 
  fprintf(outfile, "\t   ----------------------------------------\n");
27
 
  for(i=0; i < Params->nirreps; i++)
28
 
      fprintf(outfile,   "\t   Irrep: %1d row = %5d\tcol = %5d\n", i,
29
 
              Params->rowtot[i], Params->coltot[i^my_irrep]);
30
 
  fflush(outfile);
31
 
 
32
 
  dpd_file2_mat_init(File);
33
 
  dpd_file2_mat_rd(File);
34
 
  dpd_file2_mat_print(File, outfile);
35
 
  dpd_file2_mat_close(File);
36
 
 
37
 
  return 0;
38
 
 
39
 
}