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

« back to all changes in this revision

Viewing changes to src/bin/intder/intder.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
 
#include <stdlib.h>
2
 
#include <stdio.h>
 
1
/*! \defgroup INTDER intder: Internal Coordinates and their Derivatives */
 
2
 
 
3
/*! 
 
4
** \file
 
5
** \ingroup INTDER
 
6
** \brief Transform Internal Coordinates and their Derivatives
 
7
*/
 
8
 
 
9
#include <cstdlib>
 
10
#include <cstdio>
3
11
#include "cartesian.h"
4
12
#include "atom.h"
5
13
#include "molecule.h"
10
18
#include "bmat.h"
11
19
#include "transform.h"
12
20
 
13
 
extern "C" {
14
21
#include <libchkpt/chkpt.h>
15
22
#include <libciomr/libciomr.h>
16
23
#include <libipv1/ip_lib.h>
18
25
#include <libpsio/psio.h>
19
26
#include <psifiles.h>
20
27
 
21
 
char *gprgid(void);
22
 
};
 
28
extern "C" const char *gprgid(void);
23
29
 
 
30
namespace psi { namespace intder {
24
31
// Global variables
25
32
Displacements gDisplacements;
26
33
Params gParams;
30
37
 
31
38
void intro(void);
32
39
void readIntCoDerivatives(void);
33
 
 
 
40
}} // namespace psi::intder
34
41
 
35
42
int main(int argc, char** argv)
36
43
{
 
44
  using namespace psi::intder;
37
45
  double *e12 = NULL;
38
46
  double *e23 = NULL;
39
47
  double *e13 = NULL;
42
50
  int index;
43
51
  int i,j;
44
52
 
45
 
  psi_start(argc-1, argv+1, 0);
 
53
  psi_start(&infile,&outfile,&psi_file_prefix,argc-1, argv+1, 0);
46
54
  ip_cwk_add(gprgid());
47
 
  psio_init();
 
55
  psio_init(); psio_ipv1_config();
48
56
  tstart(outfile);
49
57
  chkpt_init(PSIO_OPEN_OLD);
50
58
 
165
173
  chkpt_close();
166
174
  tstop(outfile);
167
175
  psio_done();
168
 
  psi_stop();
 
176
  psi_stop(infile,outfile,psi_file_prefix);
169
177
  return 0;
170
178
}
171
179
 
172
 
char *gprgid(void)
 
180
extern "C" const char *gprgid(void)
173
181
{
174
 
  char *prgid = ":INTDER";
 
182
  const char *prgid = "INTDER";
175
183
  return (prgid);
176
184
}
177
185
 
 
186
namespace psi { namespace intder {
 
187
 
178
188
void intro(void)
179
189
{
180
190
    fprintf(outfile,
196
206
    fprintf(outfile,
197
207
              "\t------------------------------------------------------\n");
198
208
}
 
209
 
 
210
}} // namespace psi::intder