~ubuntu-branches/debian/stretch/openbabel/stretch

« back to all changes in this revision

Viewing changes to src/charges/eem.cpp

  • Committer: Package Import Robot
  • Author(s): Daniel Leidert
  • Date: 2013-05-22 19:08:27 UTC
  • mfrom: (1.1.11) (7.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20130522190827-72q0fnx5y2nm3bc0
Tags: 2.3.2+dfsg-1
* New upstream release.
* debian/control: Dropped DM-Upload-Allowed field.
  (Standards-Version): Bumped to 3.9.4.
* debian/copyright: Massive update.
* debian/upstream: Author name update.
* debian/get-orig-source.sh: Remove the windows-*/ directory too.
* debian/openbabel.install: Removed roundtrip manpage.
* debian/openbabel-gui.install: Fixed manpage name.
* debian/openbabel-gui.links: Removed unused file.
* debian/rules: Enable OpenMP. Disable tests on `nocheck'.
* debian/patches/gaussformat_nosym.patch: Dropped. Applied upstream.
* debian/patches/moldenformat_coordonly.patch: Ditto.
* debian/patches/obspectrophore_man.patch: Ditto.
* debian/patches/fix_ftbfs.patch: Added.
  - Fix several FTBFS issues in upstream build system.
* debian/patches/series: Adjusted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
    CHI[_nAtoms] = totalCharge;
173
173
 
174
174
    // Complete ETA
175
 
    double d;
176
175
    OBAtom *rAtom, *cAtom;
177
176
    for (unsigned int r = 0; r < _nAtoms; ++r)
178
177
      {
184
183
            ETA[c][r] = ETA[r][c];
185
184
          }
186
185
      }
187
 
    for (int i = 0; i < dim; ++i)
 
186
    for (unsigned int i = 0; i < dim; ++i)
188
187
      {
189
188
        ETA[i][_nAtoms] = -1.0;
190
189
        ETA[_nAtoms][i] = +1.0;
219
218
  void
220
219
  EEMCharges::_luDecompose(double** A, std::vector<int>& I, unsigned int dim)
221
220
  {
222
 
    int i, j, k, kMax, iMax;
 
221
    unsigned int i, j, k, kMax, iMax;
223
222
    std::vector<double> vScales(dim, 0);
224
223
    double maxVal = 0, dummy = 0;
225
224
    double * pRowi = NULL;
300
299
  void
301
300
  EEMCharges::_luSolve(double** A, std::vector<int>& I, double* B, unsigned int dim)
302
301
  {
303
 
    int i, k;
 
302
    unsigned int i, k;
304
303
 
305
 
    for (int i = 0; i < dim; ++i) _swapRows(B, i, I[i]);
 
304
    for (i = 0; i < dim; ++i) _swapRows(B, i, I[i]);
306
305
 
307
306
    // forward substitution pass
308
307
    for (k = 0; k < dim; ++k)