ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/nonbonded/SlaterIntegrals.hpp
(Generate patch)

Comparing branches/development/src/nonbonded/SlaterIntegrals.hpp (file contents):
Revision 1733 by gezelter, Wed May 30 17:19:13 2012 UTC vs.
Revision 1734 by jmichalk, Tue Jun 5 17:49:36 2012 UTC

# Line 61 | Line 61
61  
62   #include "config.h"
63   #include <cmath>
64 < #include <cstdlib>
64 > #include <iostream>
65   #include "math/Factorials.hpp"
66  
67   #ifndef NONBONDED_SLATERINTEGRALS_HPP
# Line 94 | Line 94 | inline RealType RosenA(int n, RealType a)
94      {
95        RealType Term = 1.;
96        RosenA_ = Term;
97 <      for (unsigned nu=1; nu<=n; nu++)
97 >      for (int nu=1; nu<=n; nu++)
98          {
99            Term *= a / nu;
100            RosenA_ += Term;
# Line 173 | Line 173 | inline RealType RosenD(int m, int n, int p)
173   * @note N. Rosen, Phys. Rev., 38 (1931), 255
174   */
175   inline RealType RosenD(int m, int n, int p)
176 // [?ERROR?] can't return int
176   {
178  printf("RosenD\n");
179  exit(0);
177    if (m+n+p > maxFact)
178      {
179        printf("Error, arguments exceed maximum factorial computed %d > %d\n", m+n+p, maxFact);
# Line 236 | Line 233 | inline RealType sSTOCoulInt(RealType a, RealType b, in
233        else
234          {
235            // Not implemented
236 <          printf("ERROR, sSTOCoulInt cannot compute from arguments\n");
237 <          printf("a = %lf b = %lf m = %d n = %d R = %lf\n",a, b, m, n, R);
238 <          exit(0);
236 >          cerr << "ERROR, sSTOCoulInt cannot compute from arguments\n";
237 >          cerr << "a = " << a << "\tb = " << b << "\tm = " << m <<"\tn = " << n << "\t R = " << R << "\n";
238 >          //printf("ERROR, sSTOCoulInt cannot compute from arguments\n");
239 >          //printf("a = %lf b = %lf m = %d n = %d R = %lf\n",a, b, m, n, R);
240 >          //exit(0);
241          }
242      }
243    else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines