1 // clang-format off
2 /* ----------------------------------------------------------------------
3 LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
4 https://www.lammps.org/, Sandia National Laboratories
5 Steve Plimpton, sjplimp@sandia.gov
6
7 Copyright (2003) Sandia Corporation. Under the terms of Contract
8 DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
9 certain rights in this software. This software is distributed under
10 the GNU General Public License.
11
12 See the README file in the top-level LAMMPS directory.
13 ------------------------------------------------------------------------- */
14
15 #include "fix_deprecated.h"
16
17 #include "comm.h"
18 #include "error.h"
19
20
21 using namespace LAMMPS_NS;
22
23 /* ---------------------------------------------------------------------- */
24
FixDeprecated(LAMMPS * lmp,int narg,char ** arg)25 FixDeprecated::FixDeprecated(LAMMPS *lmp, int narg, char **arg) :
26 Fix(lmp, narg, arg)
27 {
28 std::string my_style = style;
29
30 if (my_style == "DEPRECATED") {
31 if (lmp->comm->me == 0)
32 utils::logmesg(lmp,"\nFix style 'DEPRECATED' is a dummy style\n\n");
33 return;
34 } else if (utils::strmatch(my_style,"^ave/spatial")) {
35 if (lmp->comm->me == 0)
36 utils::logmesg(lmp,"\nFix styles 'ave/spatial' and 'ave/spatial/sphere'"
37 " have been replaced\nby the more general fix ave/chunk "
38 "and compute chunk/atom commands.\nAll ave/spatial and "
39 "ave/spatial/sphere functionality is available in these"
40 "\nnew commands. These ave/spatial keywords & options are"
41 " part of fix ave/chunk:\n Nevery, Nrepeat, Nfreq, input"
42 " values, norm, ave, file, overwrite, title123\nThese "
43 "ave/spatial keywords & options for binning are part of "
44 "compute chunk/atom:\n dim, origin, delta, region, "
45 "bound, discard, units\n\n");
46 }
47 error->all(FLERR,"This fix style is no longer available");
48 }
49