add url to angle_coeff messages
This commit is contained in:
@ -623,7 +623,7 @@ void AngleAmoeba::allocate()
|
|||||||
|
|
||||||
void AngleAmoeba::coeff(int narg, char **arg)
|
void AngleAmoeba::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if (narg < 2) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (narg < 2) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
int ilo,ihi;
|
int ilo,ihi;
|
||||||
@ -632,7 +632,7 @@ void AngleAmoeba::coeff(int narg, char **arg)
|
|||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
if (strcmp(arg[1],"ba") == 0) {
|
if (strcmp(arg[1],"ba") == 0) {
|
||||||
if (narg != 6) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (narg != 6) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
|
|
||||||
double ba_k1_one = utils::numeric(FLERR,arg[2],false,lmp);
|
double ba_k1_one = utils::numeric(FLERR,arg[2],false,lmp);
|
||||||
double ba_k2_one = utils::numeric(FLERR,arg[3],false,lmp);
|
double ba_k2_one = utils::numeric(FLERR,arg[3],false,lmp);
|
||||||
@ -649,7 +649,7 @@ void AngleAmoeba::coeff(int narg, char **arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else if (strcmp(arg[1],"ub") == 0) {
|
} else if (strcmp(arg[1],"ub") == 0) {
|
||||||
if (narg != 4) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (narg != 4) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
|
|
||||||
double ub_k_one = utils::numeric(FLERR,arg[2],false,lmp);
|
double ub_k_one = utils::numeric(FLERR,arg[2],false,lmp);
|
||||||
double ub_r0_one = utils::numeric(FLERR,arg[3],false,lmp);
|
double ub_r0_one = utils::numeric(FLERR,arg[3],false,lmp);
|
||||||
@ -662,7 +662,7 @@ void AngleAmoeba::coeff(int narg, char **arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (narg != 9) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (narg != 9) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
|
|
||||||
int pflag_one = utils::inumeric(FLERR,arg[1],false,lmp);
|
int pflag_one = utils::inumeric(FLERR,arg[1],false,lmp);
|
||||||
int ubflag_one = utils::inumeric(FLERR,arg[2],false,lmp);
|
int ubflag_one = utils::inumeric(FLERR,arg[2],false,lmp);
|
||||||
@ -689,7 +689,7 @@ void AngleAmoeba::coeff(int narg, char **arg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
|
|
||||||
for (int i = ilo; i <= ihi; i++)
|
for (int i = ilo; i <= ihi; i++)
|
||||||
if (setflag_a[i] == 1 && setflag_ba[i] == 1 && setflag_ub[i])
|
if (setflag_a[i] == 1 && setflag_ba[i] == 1 && setflag_ub[i])
|
||||||
|
|||||||
@ -249,7 +249,7 @@ void AngleSPICA::allocate()
|
|||||||
void AngleSPICA::coeff(int narg, char **arg)
|
void AngleSPICA::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if ((narg < 3) || (narg > 6))
|
if ((narg < 3) || (narg > 6))
|
||||||
error->all(FLERR,"Incorrect args for angle coefficients");
|
error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
|
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
@ -270,7 +270,7 @@ void AngleSPICA::coeff(int narg, char **arg)
|
|||||||
if (repscale_one > 0.0) repscale_one = 1.0;
|
if (repscale_one > 0.0) repscale_one = 1.0;
|
||||||
} else if (narg == 4) repscale_one = utils::numeric(FLERR,arg[3],false,lmp);
|
} else if (narg == 4) repscale_one = utils::numeric(FLERR,arg[3],false,lmp);
|
||||||
else if (narg == 3) repscale_one = 1.0;
|
else if (narg == 3) repscale_one = 1.0;
|
||||||
else error->all(FLERR,"Incorrect args for angle coefficients");
|
else error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
|
|
||||||
// convert theta0 from degrees to radians and store coefficients
|
// convert theta0 from degrees to radians and store coefficients
|
||||||
|
|
||||||
@ -283,7 +283,7 @@ void AngleSPICA::coeff(int narg, char **arg)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------
|
/* ----------------------------------------------------------------------
|
||||||
|
|||||||
@ -272,7 +272,7 @@ void AngleClass2::allocate()
|
|||||||
|
|
||||||
void AngleClass2::coeff(int narg, char **arg)
|
void AngleClass2::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if (narg < 2) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (narg < 2) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
int ilo,ihi;
|
int ilo,ihi;
|
||||||
@ -281,7 +281,7 @@ void AngleClass2::coeff(int narg, char **arg)
|
|||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
if (strcmp(arg[1],"bb") == 0) {
|
if (strcmp(arg[1],"bb") == 0) {
|
||||||
if (narg != 5) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (narg != 5) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
|
|
||||||
double bb_k_one = utils::numeric(FLERR,arg[2],false,lmp);
|
double bb_k_one = utils::numeric(FLERR,arg[2],false,lmp);
|
||||||
double bb_r1_one = utils::numeric(FLERR,arg[3],false,lmp);
|
double bb_r1_one = utils::numeric(FLERR,arg[3],false,lmp);
|
||||||
@ -296,7 +296,7 @@ void AngleClass2::coeff(int narg, char **arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else if (strcmp(arg[1],"ba") == 0) {
|
} else if (strcmp(arg[1],"ba") == 0) {
|
||||||
if (narg != 6) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (narg != 6) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
|
|
||||||
double ba_k1_one = utils::numeric(FLERR,arg[2],false,lmp);
|
double ba_k1_one = utils::numeric(FLERR,arg[2],false,lmp);
|
||||||
double ba_k2_one = utils::numeric(FLERR,arg[3],false,lmp);
|
double ba_k2_one = utils::numeric(FLERR,arg[3],false,lmp);
|
||||||
@ -313,7 +313,7 @@ void AngleClass2::coeff(int narg, char **arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (narg != 5) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (narg != 5) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
|
|
||||||
double theta0_one = utils::numeric(FLERR,arg[1],false,lmp);
|
double theta0_one = utils::numeric(FLERR,arg[1],false,lmp);
|
||||||
double k2_one = utils::numeric(FLERR,arg[2],false,lmp);
|
double k2_one = utils::numeric(FLERR,arg[2],false,lmp);
|
||||||
@ -332,7 +332,7 @@ void AngleClass2::coeff(int narg, char **arg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
|
|
||||||
for (int i = ilo; i <= ihi; i++)
|
for (int i = ilo; i <= ihi; i++)
|
||||||
if (setflag_a[i] == 1 && setflag_bb[i] == 1 && setflag_ba[i] == 1)
|
if (setflag_a[i] == 1 && setflag_bb[i] == 1 && setflag_ba[i] == 1)
|
||||||
|
|||||||
@ -160,7 +160,7 @@ void AngleDipole::allocate()
|
|||||||
|
|
||||||
void AngleDipole::coeff(int narg, char **arg)
|
void AngleDipole::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if (narg != 3) error->all(FLERR, "Incorrect args for angle coefficients");
|
if (narg != 3) error->all(FLERR, "Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
int ilo, ihi;
|
int ilo, ihi;
|
||||||
@ -179,7 +179,7 @@ void AngleDipole::coeff(int narg, char **arg)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------
|
/* ----------------------------------------------------------------------
|
||||||
|
|||||||
@ -201,7 +201,7 @@ void AngleCosinePeriodic::allocate()
|
|||||||
|
|
||||||
void AngleCosinePeriodic::coeff(int narg, char **arg)
|
void AngleCosinePeriodic::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if (narg != 4) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (narg != 4) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
int ilo,ihi;
|
int ilo,ihi;
|
||||||
@ -210,7 +210,7 @@ void AngleCosinePeriodic::coeff(int narg, char **arg)
|
|||||||
double c_one = utils::numeric(FLERR,arg[1],false,lmp);
|
double c_one = utils::numeric(FLERR,arg[1],false,lmp);
|
||||||
int b_one = utils::inumeric(FLERR,arg[2],false,lmp);
|
int b_one = utils::inumeric(FLERR,arg[2],false,lmp);
|
||||||
int n_one = utils::inumeric(FLERR,arg[3],false,lmp);
|
int n_one = utils::inumeric(FLERR,arg[3],false,lmp);
|
||||||
if (n_one <= 0) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (n_one <= 0) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (int i = ilo; i <= ihi; i++) {
|
for (int i = ilo; i <= ihi; i++) {
|
||||||
@ -221,7 +221,7 @@ void AngleCosinePeriodic::coeff(int narg, char **arg)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|||||||
@ -172,7 +172,7 @@ void AngleCosineShift::allocate()
|
|||||||
|
|
||||||
void AngleCosineShift::coeff(int narg, char **arg)
|
void AngleCosineShift::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if (narg != 3) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (narg != 3) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
int ilo,ihi;
|
int ilo,ihi;
|
||||||
@ -194,7 +194,7 @@ void AngleCosineShift::coeff(int narg, char **arg)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|||||||
@ -200,7 +200,7 @@ void AngleCosineShiftExp::allocate()
|
|||||||
|
|
||||||
void AngleCosineShiftExp::coeff(int narg, char **arg)
|
void AngleCosineShiftExp::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if (narg != 4) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (narg != 4) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
int ilo,ihi;
|
int ilo,ihi;
|
||||||
@ -225,7 +225,7 @@ void AngleCosineShiftExp::coeff(int narg, char **arg)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|||||||
@ -166,7 +166,7 @@ void AngleCosineSquaredRestricted::allocate()
|
|||||||
|
|
||||||
void AngleCosineSquaredRestricted::coeff(int narg, char **arg)
|
void AngleCosineSquaredRestricted::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if (narg != 3) error->all(FLERR, "Incorrect args for angle coefficients");
|
if (narg != 3) error->all(FLERR, "Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
int ilo, ihi;
|
int ilo, ihi;
|
||||||
@ -185,7 +185,7 @@ void AngleCosineSquaredRestricted::coeff(int narg, char **arg)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|||||||
@ -174,7 +174,7 @@ void AngleFourier::allocate()
|
|||||||
|
|
||||||
void AngleFourier::coeff(int narg, char **arg)
|
void AngleFourier::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if (narg != 5) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (narg != 5) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
int ilo,ihi;
|
int ilo,ihi;
|
||||||
@ -195,7 +195,7 @@ void AngleFourier::coeff(int narg, char **arg)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|||||||
@ -191,7 +191,7 @@ void AngleFourierSimple::allocate()
|
|||||||
|
|
||||||
void AngleFourierSimple::coeff(int narg, char **arg)
|
void AngleFourierSimple::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if (narg != 4) error->all(FLERR, "Incorrect args for angle coefficients");
|
if (narg != 4) error->all(FLERR, "Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
int ilo, ihi;
|
int ilo, ihi;
|
||||||
@ -210,7 +210,7 @@ void AngleFourierSimple::coeff(int narg, char **arg)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|||||||
@ -236,7 +236,7 @@ void AngleGaussian::coeff(int narg, char **arg)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|||||||
@ -174,7 +174,7 @@ void AngleMWLC::allocate()
|
|||||||
|
|
||||||
void AngleMWLC::coeff(int narg, char **arg)
|
void AngleMWLC::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if (narg != 5) error->all(FLERR, "Incorrect args for angle coefficients");
|
if (narg != 5) error->all(FLERR, "Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
int ilo, ihi;
|
int ilo, ihi;
|
||||||
@ -195,7 +195,7 @@ void AngleMWLC::coeff(int narg, char **arg)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|||||||
@ -183,7 +183,7 @@ void AngleQuartic::allocate()
|
|||||||
|
|
||||||
void AngleQuartic::coeff(int narg, char **arg)
|
void AngleQuartic::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if (narg != 5) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (narg != 5) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
int ilo,ihi;
|
int ilo,ihi;
|
||||||
@ -206,7 +206,7 @@ void AngleQuartic::coeff(int narg, char **arg)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|||||||
@ -298,7 +298,7 @@ void AngleLepton::coeff(int narg, char **arg)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|||||||
@ -279,7 +279,7 @@ void AngleClass2P6::allocate()
|
|||||||
|
|
||||||
void AngleClass2P6::coeff(int narg, char **arg)
|
void AngleClass2P6::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if (narg < 2) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (narg < 2) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
int ilo,ihi;
|
int ilo,ihi;
|
||||||
@ -288,7 +288,7 @@ void AngleClass2P6::coeff(int narg, char **arg)
|
|||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
if (strcmp(arg[1],"bb") == 0) {
|
if (strcmp(arg[1],"bb") == 0) {
|
||||||
if (narg != 5) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (narg != 5) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
|
|
||||||
double bb_k_one = utils::numeric(FLERR,arg[2],false,lmp);
|
double bb_k_one = utils::numeric(FLERR,arg[2],false,lmp);
|
||||||
double bb_r1_one = utils::numeric(FLERR,arg[3],false,lmp);
|
double bb_r1_one = utils::numeric(FLERR,arg[3],false,lmp);
|
||||||
@ -303,7 +303,7 @@ void AngleClass2P6::coeff(int narg, char **arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else if (strcmp(arg[1],"ba") == 0) {
|
} else if (strcmp(arg[1],"ba") == 0) {
|
||||||
if (narg != 6) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (narg != 6) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
|
|
||||||
double ba_k1_one = utils::numeric(FLERR,arg[2],false,lmp);
|
double ba_k1_one = utils::numeric(FLERR,arg[2],false,lmp);
|
||||||
double ba_k2_one = utils::numeric(FLERR,arg[3],false,lmp);
|
double ba_k2_one = utils::numeric(FLERR,arg[3],false,lmp);
|
||||||
@ -320,7 +320,7 @@ void AngleClass2P6::coeff(int narg, char **arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (narg != 7) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (narg != 7) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
|
|
||||||
double theta0_one = utils::numeric(FLERR,arg[1],false,lmp);
|
double theta0_one = utils::numeric(FLERR,arg[1],false,lmp);
|
||||||
double k2_one = utils::numeric(FLERR,arg[2],false,lmp);
|
double k2_one = utils::numeric(FLERR,arg[2],false,lmp);
|
||||||
@ -343,7 +343,7 @@ void AngleClass2P6::coeff(int narg, char **arg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
|
|
||||||
for (int i = ilo; i <= ihi; i++)
|
for (int i = ilo; i <= ihi; i++)
|
||||||
if (setflag_a[i] == 1 && setflag_bb[i] == 1 && setflag_ba[i] == 1)
|
if (setflag_a[i] == 1 && setflag_bb[i] == 1 && setflag_ba[i] == 1)
|
||||||
|
|||||||
@ -248,7 +248,7 @@ void AngleCosineBuck6d::allocate()
|
|||||||
|
|
||||||
void AngleCosineBuck6d::coeff(int narg, char **arg)
|
void AngleCosineBuck6d::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if (narg != 4) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (narg != 4) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
int ilo,ihi;
|
int ilo,ihi;
|
||||||
@ -257,7 +257,7 @@ void AngleCosineBuck6d::coeff(int narg, char **arg)
|
|||||||
double c_one = utils::numeric(FLERR,arg[1],false,lmp);
|
double c_one = utils::numeric(FLERR,arg[1],false,lmp);
|
||||||
int n_one = utils::inumeric(FLERR,arg[2],false,lmp);
|
int n_one = utils::inumeric(FLERR,arg[2],false,lmp);
|
||||||
int th0_one = utils::numeric(FLERR,arg[3],false,lmp);
|
int th0_one = utils::numeric(FLERR,arg[3],false,lmp);
|
||||||
if (n_one <= 0) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (n_one <= 0) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
|
|
||||||
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
@ -271,7 +271,7 @@ void AngleCosineBuck6d::coeff(int narg, char **arg)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------
|
/* ----------------------------------------------------------------------
|
||||||
|
|||||||
@ -196,7 +196,7 @@ void AngleCharmm::allocate()
|
|||||||
|
|
||||||
void AngleCharmm::coeff(int narg, char **arg)
|
void AngleCharmm::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if (narg != 5) error->all(FLERR, "Incorrect args for angle coefficients");
|
if (narg != 5) error->all(FLERR, "Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
int ilo, ihi;
|
int ilo, ihi;
|
||||||
@ -219,7 +219,7 @@ void AngleCharmm::coeff(int narg, char **arg)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|||||||
@ -155,7 +155,7 @@ void AngleCosine::allocate()
|
|||||||
|
|
||||||
void AngleCosine::coeff(int narg, char **arg)
|
void AngleCosine::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if (narg != 2) error->all(FLERR, "Incorrect args for angle coefficients");
|
if (narg != 2) error->all(FLERR, "Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
int ilo, ihi;
|
int ilo, ihi;
|
||||||
@ -170,7 +170,7 @@ void AngleCosine::coeff(int narg, char **arg)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|||||||
@ -169,7 +169,7 @@ void AngleCosineSquared::allocate()
|
|||||||
|
|
||||||
void AngleCosineSquared::coeff(int narg, char **arg)
|
void AngleCosineSquared::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if (narg != 3) error->all(FLERR, "Incorrect args for angle coefficients");
|
if (narg != 3) error->all(FLERR, "Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
int ilo, ihi;
|
int ilo, ihi;
|
||||||
@ -188,7 +188,7 @@ void AngleCosineSquared::coeff(int narg, char **arg)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|||||||
@ -172,7 +172,7 @@ void AngleHarmonic::allocate()
|
|||||||
|
|
||||||
void AngleHarmonic::coeff(int narg, char **arg)
|
void AngleHarmonic::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if (narg != 3) error->all(FLERR, "Incorrect args for angle coefficients");
|
if (narg != 3) error->all(FLERR, "Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
int ilo, ihi;
|
int ilo, ihi;
|
||||||
@ -191,7 +191,7 @@ void AngleHarmonic::coeff(int narg, char **arg)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|||||||
@ -220,7 +220,7 @@ void AngleCross::allocate()
|
|||||||
|
|
||||||
void AngleCross::coeff(int narg, char **arg)
|
void AngleCross::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if (narg != 7) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (narg != 7) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
int ilo,ihi;
|
int ilo,ihi;
|
||||||
@ -247,7 +247,7 @@ void AngleCross::coeff(int narg, char **arg)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|||||||
@ -180,7 +180,7 @@ void AngleMM3::allocate()
|
|||||||
|
|
||||||
void AngleMM3::coeff(int narg, char **arg)
|
void AngleMM3::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if (narg != 3) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (narg != 3) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
int ilo,ihi;
|
int ilo,ihi;
|
||||||
@ -200,7 +200,7 @@ void AngleMM3::coeff(int narg, char **arg)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR,"Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -83,7 +83,7 @@ void AngleZero::allocate()
|
|||||||
void AngleZero::coeff(int narg, char **arg)
|
void AngleZero::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if ((narg < 1) || (coeffflag && narg > 2))
|
if ((narg < 1) || (coeffflag && narg > 2))
|
||||||
error->all(FLERR, "Incorrect args for angle coefficients");
|
error->all(FLERR, "Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
|
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ void AngleZero::coeff(int narg, char **arg)
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients");
|
if (count == 0) error->all(FLERR, "Incorrect args for angle coefficients" + utils::errorurl(21));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|||||||
Reference in New Issue
Block a user