Unverified Commit 6b1dbe23 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

the first argument to Bond::extract() should be `const char *` not `char *`.

parent 93fe3355
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -224,7 +224,7 @@ double BondClass2::single(int type, double rsq, int /*i*/, int /*j*/, double &ff

/* ---------------------------------------------------------------------- */

void *BondClass2::extract( char *str, int &dim )
void *BondClass2::extract(const char *str, int &dim)
{
  dim = 1;
  if (strcmp(str,"r0")==0) return (void*) r0;
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ class BondClass2 : public Bond {
  virtual void read_restart(FILE *);
  void write_data(FILE *);
  double single(int, double, int, int, double &);
  virtual void *extract(char *, int &);
  virtual void *extract(const char *, int &);

 protected:
  double *r0,*k2,*k3,*k4;
+1 −1
Original line number Diff line number Diff line
@@ -276,7 +276,7 @@ double BondFENE::single(int type, double rsq, int /*i*/, int /*j*/,

/* ---------------------------------------------------------------------- */

void *BondFENE::extract( char *str, int &dim )
void *BondFENE::extract(const char *str, int &dim)
{
  dim = 1;
  if (strcmp(str,"kappa")==0) return (void*) k;
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ class BondFENE : public Bond {
  void read_restart(FILE *);
  void write_data(FILE *);
  double single(int, double, int, int, double &);
  virtual void *extract(char *, int &);
  virtual void *extract(const char *, int &);

 protected:
  double TWO_1_3;
+2 −2
Original line number Diff line number Diff line
@@ -199,7 +199,7 @@ double BondGromos::single(int type, double rsq, int /*i*/, int /*j*/,
/* ----------------------------------------------------------------------
    Return ptr to internal members upon request.
------------------------------------------------------------------------ */
void *BondGromos::extract( char *str, int &dim )
void *BondGromos::extract(const char *str, int &dim)
{
  dim = 1;
  if (strcmp(str,"kappa")==0) return (void*) k;
Loading