Commit 32e0a583 authored by sjplimp's avatar sjplimp Committed by GitHub
Browse files

Merge pull request #247 from akohlmey/bounds-error-with-code-line

Propagate error error locations for a few more utility functions
parents 60908eea 218e121b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -297,8 +297,8 @@ void PairGayBerne::coeff(int narg, char **arg)
  if (!allocated) allocate();

  int ilo,ihi,jlo,jhi;
  force->bounds(arg[0],atom->ntypes,ilo,ihi);
  force->bounds(arg[1],atom->ntypes,jlo,jhi);
  force->bounds(FLERR,arg[0],atom->ntypes,ilo,ihi);
  force->bounds(FLERR,arg[1],atom->ntypes,jlo,jhi);

  double epsilon_one = force->numeric(FLERR,arg[2]);
  double sigma_one = force->numeric(FLERR,arg[3]);
+2 −2
Original line number Diff line number Diff line
@@ -371,8 +371,8 @@ void PairLineLJ::coeff(int narg, char **arg)
  if (!allocated) allocate();

  int ilo,ihi,jlo,jhi;
  force->bounds(arg[0],atom->ntypes,ilo,ihi);
  force->bounds(arg[1],atom->ntypes,jlo,jhi);
  force->bounds(FLERR,arg[0],atom->ntypes,ilo,ihi);
  force->bounds(FLERR,arg[1],atom->ntypes,jlo,jhi);

  double size_itype = force->numeric(FLERR,arg[2]);
  double size_jtype = force->numeric(FLERR,arg[3]);
+2 −2
Original line number Diff line number Diff line
@@ -269,8 +269,8 @@ void PairRESquared::coeff(int narg, char **arg)
  if (!allocated) allocate();

  int ilo,ihi,jlo,jhi;
  force->bounds(arg[0],atom->ntypes,ilo,ihi);
  force->bounds(arg[1],atom->ntypes,jlo,jhi);
  force->bounds(FLERR,arg[0],atom->ntypes,ilo,ihi);
  force->bounds(FLERR,arg[1],atom->ntypes,jlo,jhi);

  double epsilon_one = force->numeric(FLERR,arg[2]);
  double sigma_one = force->numeric(FLERR,arg[3]);
+2 −2
Original line number Diff line number Diff line
@@ -442,8 +442,8 @@ void PairTriLJ::coeff(int narg, char **arg)
  if (!allocated) allocate();

  int ilo,ihi,jlo,jhi;
  force->bounds(arg[0],atom->ntypes,ilo,ihi);
  force->bounds(arg[1],atom->ntypes,jlo,jhi);
  force->bounds(FLERR,arg[0],atom->ntypes,ilo,ihi);
  force->bounds(FLERR,arg[1],atom->ntypes,jlo,jhi);

  double epsilon_one = force->numeric(FLERR,arg[2]);
  double sigma_one = force->numeric(FLERR,arg[3]);
+2 −2
Original line number Diff line number Diff line
@@ -388,8 +388,8 @@ void PairBody::coeff(int narg, char **arg)
  if (!allocated) allocate();

  int ilo,ihi,jlo,jhi;
  force->bounds(arg[0],atom->ntypes,ilo,ihi);
  force->bounds(arg[1],atom->ntypes,jlo,jhi);
  force->bounds(FLERR,arg[0],atom->ntypes,ilo,ihi);
  force->bounds(FLERR,arg[1],atom->ntypes,jlo,jhi);

  double epsilon_one = force->numeric(FLERR,arg[2]);
  double sigma_one = force->numeric(FLERR,arg[3]);
Loading