From c9bd1a7877c6dcf88e1d00c6c088f977561034d1 Mon Sep 17 00:00:00 2001 From: megmcca Date: Mon, 10 Feb 2025 09:59:04 -0700 Subject: [PATCH] add url to improper_coeff messages --- src/AMOEBA/improper_amoeba.cpp | 4 ++-- src/CLASS2/improper_class2.cpp | 8 ++++---- src/EXTRA-MOLECULE/improper_cossq.cpp | 2 +- src/EXTRA-MOLECULE/improper_distance.cpp | 4 ++-- src/EXTRA-MOLECULE/improper_fourier.cpp | 4 ++-- src/EXTRA-MOLECULE/improper_ring.cpp | 2 +- src/MOFFF/improper_inversion_harmonic.cpp | 4 ++-- src/MOLECULE/improper_cvff.cpp | 4 ++-- src/MOLECULE/improper_harmonic.cpp | 4 ++-- src/MOLECULE/improper_umbrella.cpp | 4 ++-- src/YAFF/improper_distharm.cpp | 4 ++-- src/YAFF/improper_sqdistharm.cpp | 4 ++-- src/improper_zero.cpp | 4 ++-- 13 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/AMOEBA/improper_amoeba.cpp b/src/AMOEBA/improper_amoeba.cpp index cbc7fbd8d2..f14713cd20 100644 --- a/src/AMOEBA/improper_amoeba.cpp +++ b/src/AMOEBA/improper_amoeba.cpp @@ -257,7 +257,7 @@ void ImproperAmoeba::allocate() void ImproperAmoeba::coeff(int narg, char **arg) { - if (narg != 2) error->all(FLERR,"Incorrect args for improper coefficients"); + if (narg != 2) error->all(FLERR,"Incorrect args for improper coefficients" + utils::errorurl(21)); if (!allocated) allocate(); int ilo,ihi; @@ -274,7 +274,7 @@ void ImproperAmoeba::coeff(int narg, char **arg) count++; } - if (count == 0) error->all(FLERR,"Incorrect args for improper coefficients"); + if (count == 0) error->all(FLERR,"Incorrect args for improper coefficients" + utils::errorurl(21)); } /* ---------------------------------------------------------------------- diff --git a/src/CLASS2/improper_class2.cpp b/src/CLASS2/improper_class2.cpp index 73f21600bb..e53b06969c 100644 --- a/src/CLASS2/improper_class2.cpp +++ b/src/CLASS2/improper_class2.cpp @@ -509,7 +509,7 @@ void ImproperClass2::allocate() void ImproperClass2::coeff(int narg, char **arg) { - if (narg < 2) error->all(FLERR,"Incorrect args for improper coefficients"); + if (narg < 2) error->all(FLERR,"Incorrect args for improper coefficients" + utils::errorurl(21)); if (!allocated) allocate(); int ilo,ihi; @@ -518,7 +518,7 @@ void ImproperClass2::coeff(int narg, char **arg) int count = 0; if (strcmp(arg[1],"aa") == 0) { - if (narg != 8) error->all(FLERR,"Incorrect args for improper coefficients"); + if (narg != 8) error->all(FLERR,"Incorrect args for improper coefficients" + utils::errorurl(21)); double k1_one = utils::numeric(FLERR,arg[2],false,lmp); double k2_one = utils::numeric(FLERR,arg[3],false,lmp); @@ -541,7 +541,7 @@ void ImproperClass2::coeff(int narg, char **arg) } } else { - if (narg != 3) error->all(FLERR,"Incorrect args for improper coefficients"); + if (narg != 3) error->all(FLERR,"Incorrect args for improper coefficients" + utils::errorurl(21)); double k0_one = utils::numeric(FLERR,arg[1],false,lmp); double chi0_one = utils::numeric(FLERR,arg[2],false,lmp); @@ -556,7 +556,7 @@ void ImproperClass2::coeff(int narg, char **arg) } } - if (count == 0) error->all(FLERR,"Incorrect args for improper coefficients"); + if (count == 0) error->all(FLERR,"Incorrect args for improper coefficients" + utils::errorurl(21)); for (int i = ilo; i <= ihi; i++) if (setflag_i[i] == 1 && setflag_aa[i] == 1) setflag[i] = 1; diff --git a/src/EXTRA-MOLECULE/improper_cossq.cpp b/src/EXTRA-MOLECULE/improper_cossq.cpp index 864ec28927..bcf9715990 100644 --- a/src/EXTRA-MOLECULE/improper_cossq.cpp +++ b/src/EXTRA-MOLECULE/improper_cossq.cpp @@ -270,7 +270,7 @@ void ImproperCossq::coeff(int narg, char **arg) count++; } - if (count == 0) error->all(FLERR,"Incorrect args for improper coefficients"); + if (count == 0) error->all(FLERR,"Incorrect args for improper coefficients" + utils::errorurl(21)); } /* ---------------------------------------------------------------------- diff --git a/src/EXTRA-MOLECULE/improper_distance.cpp b/src/EXTRA-MOLECULE/improper_distance.cpp index 934eeb285d..b8376020dd 100644 --- a/src/EXTRA-MOLECULE/improper_distance.cpp +++ b/src/EXTRA-MOLECULE/improper_distance.cpp @@ -209,7 +209,7 @@ void ImproperDistance::allocate() void ImproperDistance::coeff(int narg, char **arg) { // if (which > 0) return; - if (narg != 3) error->all(FLERR,"Incorrect args for improper coefficients"); + if (narg != 3) error->all(FLERR,"Incorrect args for improper coefficients" + utils::errorurl(21)); if (!allocated) allocate(); int ilo,ihi; @@ -228,7 +228,7 @@ void ImproperDistance::coeff(int narg, char **arg) count++; } - if (count == 0) error->all(FLERR,"Incorrect args for improper coefficients"); + if (count == 0) error->all(FLERR,"Incorrect args for improper coefficients" + utils::errorurl(21)); } /* ---------------------------------------------------------------------- diff --git a/src/EXTRA-MOLECULE/improper_fourier.cpp b/src/EXTRA-MOLECULE/improper_fourier.cpp index 1db8b3697c..b2814f4d1f 100644 --- a/src/EXTRA-MOLECULE/improper_fourier.cpp +++ b/src/EXTRA-MOLECULE/improper_fourier.cpp @@ -261,7 +261,7 @@ void ImproperFourier::allocate() void ImproperFourier::coeff(int narg, char **arg) { - if (narg != 5 && narg != 6) error->all(FLERR,"Incorrect args for improper coefficients"); + if (narg != 5 && narg != 6) error->all(FLERR,"Incorrect args for improper coefficients" + utils::errorurl(21)); if (!allocated) allocate(); @@ -288,7 +288,7 @@ void ImproperFourier::coeff(int narg, char **arg) count++; } - if (count == 0) error->all(FLERR,"Incorrect args for improper coefficients"); + if (count == 0) error->all(FLERR,"Incorrect args for improper coefficients" + utils::errorurl(21)); } /* ---------------------------------------------------------------------- diff --git a/src/EXTRA-MOLECULE/improper_ring.cpp b/src/EXTRA-MOLECULE/improper_ring.cpp index 3d8b672e1e..8fee93055e 100644 --- a/src/EXTRA-MOLECULE/improper_ring.cpp +++ b/src/EXTRA-MOLECULE/improper_ring.cpp @@ -309,7 +309,7 @@ void ImproperRing ::coeff(int narg, char **arg) count++; } - if (count == 0) error->all(FLERR,"Incorrect args for improper coefficients"); + if (count == 0) error->all(FLERR,"Incorrect args for improper coefficients" + utils::errorurl(21)); } /* ---------------------------------------------------------------------- diff --git a/src/MOFFF/improper_inversion_harmonic.cpp b/src/MOFFF/improper_inversion_harmonic.cpp index c0de968626..0a4661c6b1 100644 --- a/src/MOFFF/improper_inversion_harmonic.cpp +++ b/src/MOFFF/improper_inversion_harmonic.cpp @@ -273,7 +273,7 @@ void ImproperInversionHarmonic::allocate() void ImproperInversionHarmonic::coeff(int narg, char **arg) { - if (narg != 3) error->all(FLERR,"Incorrect args for improper coefficients"); + if (narg != 3) error->all(FLERR,"Incorrect args for improper coefficients" + utils::errorurl(21)); if (!allocated) allocate(); int ilo,ihi; @@ -292,7 +292,7 @@ void ImproperInversionHarmonic::coeff(int narg, char **arg) count++; } - if (count == 0) error->all(FLERR,"Incorrect args for improper coefficients"); + if (count == 0) error->all(FLERR,"Incorrect args for improper coefficients" + utils::errorurl(21)); } /* ---------------------------------------------------------------------- diff --git a/src/MOLECULE/improper_cvff.cpp b/src/MOLECULE/improper_cvff.cpp index ad8f709541..11dace26d1 100644 --- a/src/MOLECULE/improper_cvff.cpp +++ b/src/MOLECULE/improper_cvff.cpp @@ -275,7 +275,7 @@ void ImproperCvff::allocate() void ImproperCvff::coeff(int narg, char **arg) { - if (narg != 4) error->all(FLERR, "Incorrect args for improper coefficients"); + if (narg != 4) error->all(FLERR, "Incorrect args for improper coefficients" + utils::errorurl(21)); if (!allocated) allocate(); int ilo, ihi; @@ -294,7 +294,7 @@ void ImproperCvff::coeff(int narg, char **arg) count++; } - if (count == 0) error->all(FLERR, "Incorrect args for improper coefficients"); + if (count == 0) error->all(FLERR, "Incorrect args for improper coefficients" + utils::errorurl(21)); } /* ---------------------------------------------------------------------- diff --git a/src/MOLECULE/improper_harmonic.cpp b/src/MOLECULE/improper_harmonic.cpp index 06647fb93b..5f25d678db 100644 --- a/src/MOLECULE/improper_harmonic.cpp +++ b/src/MOLECULE/improper_harmonic.cpp @@ -217,7 +217,7 @@ void ImproperHarmonic::allocate() void ImproperHarmonic::coeff(int narg, char **arg) { - if (narg != 3) error->all(FLERR, "Incorrect args for improper coefficients"); + if (narg != 3) error->all(FLERR, "Incorrect args for improper coefficients" + utils::errorurl(21)); if (!allocated) allocate(); int ilo, ihi; @@ -236,7 +236,7 @@ void ImproperHarmonic::coeff(int narg, char **arg) count++; } - if (count == 0) error->all(FLERR, "Incorrect args for improper coefficients"); + if (count == 0) error->all(FLERR, "Incorrect args for improper coefficients" + utils::errorurl(21)); } /* ---------------------------------------------------------------------- diff --git a/src/MOLECULE/improper_umbrella.cpp b/src/MOLECULE/improper_umbrella.cpp index 1558adc337..d3dcf4da41 100644 --- a/src/MOLECULE/improper_umbrella.cpp +++ b/src/MOLECULE/improper_umbrella.cpp @@ -256,7 +256,7 @@ void ImproperUmbrella::allocate() void ImproperUmbrella::coeff(int narg, char **arg) { - if (narg != 3) error->all(FLERR, "Incorrect args for improper coefficients"); + if (narg != 3) error->all(FLERR, "Incorrect args for improper coefficients" + utils::errorurl(21)); if (!allocated) allocate(); int ilo, ihi; @@ -279,7 +279,7 @@ void ImproperUmbrella::coeff(int narg, char **arg) count++; } - if (count == 0) error->all(FLERR, "Incorrect args for improper coefficients"); + if (count == 0) error->all(FLERR, "Incorrect args for improper coefficients" + utils::errorurl(21)); } /* ---------------------------------------------------------------------- diff --git a/src/YAFF/improper_distharm.cpp b/src/YAFF/improper_distharm.cpp index 257cbce1b3..c056b310ee 100644 --- a/src/YAFF/improper_distharm.cpp +++ b/src/YAFF/improper_distharm.cpp @@ -217,7 +217,7 @@ void ImproperDistHarm::allocate() void ImproperDistHarm::coeff(int narg, char **arg) { // if (which > 0) return; - if (narg != 3) error->all(FLERR,"Incorrect args for improper coefficients"); + if (narg != 3) error->all(FLERR,"Incorrect args for improper coefficients" + utils::errorurl(21)); if (!allocated) allocate(); int ilo,ihi; @@ -237,7 +237,7 @@ void ImproperDistHarm::coeff(int narg, char **arg) count++; } - if (count == 0) error->all(FLERR,"Incorrect args for improper coefficients"); + if (count == 0) error->all(FLERR,"Incorrect args for improper coefficients" + utils::errorurl(21)); } /* ---------------------------------------------------------------------- diff --git a/src/YAFF/improper_sqdistharm.cpp b/src/YAFF/improper_sqdistharm.cpp index f4beab3587..f3a34f3976 100644 --- a/src/YAFF/improper_sqdistharm.cpp +++ b/src/YAFF/improper_sqdistharm.cpp @@ -217,7 +217,7 @@ void ImproperSQDistHarm::allocate() void ImproperSQDistHarm::coeff(int narg, char **arg) { // if (which > 0) return; - if (narg != 3) error->all(FLERR,"Incorrect args for improper coefficients"); + if (narg != 3) error->all(FLERR,"Incorrect args for improper coefficients" + utils::errorurl(21)); if (!allocated) allocate(); int ilo,ihi; @@ -237,7 +237,7 @@ void ImproperSQDistHarm::coeff(int narg, char **arg) count++; } - if (count == 0) error->all(FLERR,"Incorrect args for improper coefficients"); + if (count == 0) error->all(FLERR,"Incorrect args for improper coefficients" + utils::errorurl(21)); } /* ---------------------------------------------------------------------- diff --git a/src/improper_zero.cpp b/src/improper_zero.cpp index e8497795ae..2487520a94 100644 --- a/src/improper_zero.cpp +++ b/src/improper_zero.cpp @@ -78,7 +78,7 @@ void ImproperZero::allocate() void ImproperZero::coeff(int narg, char **arg) { if ((narg < 1) || (coeffflag && narg > 1)) - error->all(FLERR, "Incorrect args for improper coefficients"); + error->all(FLERR, "Incorrect args for improper coefficients" + utils::errorurl(21)); if (!allocated) allocate(); @@ -91,7 +91,7 @@ void ImproperZero::coeff(int narg, char **arg) count++; } - if (count == 0) error->all(FLERR, "Incorrect args for improper coefficients"); + if (count == 0) error->all(FLERR, "Incorrect args for improper coefficients" + utils::errorurl(21)); } /* ----------------------------------------------------------------------