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

« back to all changes in this revision

Viewing changes to src/bin/optking/cartesians.h

  • 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
 
/*****************************************************************************
2
 
 
3
 
        CARTESIANS.H
4
 
 
5
 
        class declaration for cartesian
6
 
******************************************************************************/
 
1
/*! \file
 
2
    \ingroup OPTKING
 
3
    \brief Class declaration for cartesian coordinates
 
4
*/
 
5
 
 
6
#ifndef _psi3_bin_optking_cartesians_h_
 
7
#define _psi3_bin_optking_cartesians_h_
 
8
 
 
9
namespace psi { namespace optking {
7
10
 
8
11
class cartesians {
9
12
    double energy;
32
35
    }
33
36
    void print(int flag, FILE *fp_out, int new_geom_file, char *disp_label,
34
37
               int disp_num);
 
38
 
35
39
    void set_coord(double *geom) {
36
 
      int i;
37
 
      for (i=0;i<natom*3;++i)
38
 
        coord[i] = geom[i];
 
40
      int i, xyz, cnt;
 
41
      for (i=0;i<natom;++i) {
 
42
        for (xyz=0; xyz<3; ++xyz) {
 
43
          coord[3*i+xyz] = geom[3*i+xyz];
 
44
          fcoord[3*optinfo.to_dummy[i]+xyz] = geom[3*i+xyz];
 
45
        }
 
46
      }
39
47
      return;
40
48
    }
 
49
 
41
50
    void set_fcoord(double *geom) {
42
 
      int i;
43
 
      for (i=0; i<nallatom*3; ++i)
44
 
        fcoord[i] = geom[i];
 
51
      int i, cnt, xyz;
 
52
      for (i=0; i<nallatom; ++i) {
 
53
        for (xyz=0; xyz<3; ++xyz) {
 
54
          fcoord[3*i+xyz] = geom[3*i+xyz];
 
55
          coord[3*optinfo.to_nodummy[i]+xyz] = geom[3*i+xyz];
 
56
        }
 
57
      }
45
58
      return;
46
59
    }
 
60
 
47
61
    void set_grad(double *gradient) {
48
62
      int i;
49
63
      for (i=0;i<natom*3;++i)
120
134
    cartesians();
121
135
};
122
136
 
 
137
}} /* namespace psi::optking */
 
138
 
 
139
#endif