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 "region_deprecated.h"
16 
17 #include "comm.h"
18 #include "error.h"
19 
20 
21 using namespace LAMMPS_NS;
22 
23 /* ---------------------------------------------------------------------- */
24 
RegionDeprecated(LAMMPS * lmp,int narg,char ** arg)25 RegionDeprecated::RegionDeprecated(LAMMPS *lmp, int narg, char **arg) :
26   Region(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,"\nRegion style 'DEPRECATED' is a dummy style\n\n");
33     return;
34   }
35   error->all(FLERR,"This region style is no longer available");
36 }
37