Unverified Commit 66f730b8 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

setting const on return value has no effect

parent dae2bce6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -214,7 +214,7 @@ protected:
  void alloyparams();
  void compute_pair_meam();
  double phi_meam(double, int, int);
  const double phi_meam_series(const double scrn, const int Z1, const int Z2, const int a, const int b, const double r, const double arat);
  double phi_meam_series(const double scrn, const int Z1, const int Z2, const int a, const int b, const double r, const double arat);
  void compute_reference_density();
  void get_tavref(double*, double*, double*, double*, double*, double*, double, double, double, double,
                  double, double, double, int, int, lattice_t);
+1 −1
Original line number Diff line number Diff line
@@ -519,7 +519,7 @@ MEAM::phi_meam(double r, int a, int b)
//   To avoid nan values of phir due to rapid decrease of b2nn^n or/and
//   argument of phi_meam, i.e. r*arat^n, in some cases (3NN dia with low Cmin value)
//
const double
double
MEAM::phi_meam_series(const double scrn, const int Z1, const int Z2, const int a, const int b, const double r, const double arat)
{
  double phi_sum = 0.0;