1 /* ----------------------------------------------------------------------
2     This is the
3 
4     ██╗     ██╗ ██████╗  ██████╗  ██████╗ ██╗  ██╗████████╗███████╗
5     ██║     ██║██╔════╝ ██╔════╝ ██╔════╝ ██║  ██║╚══██╔══╝██╔════╝
6     ██║     ██║██║  ███╗██║  ███╗██║  ███╗███████║   ██║   ███████╗
7     ██║     ██║██║   ██║██║   ██║██║   ██║██╔══██║   ██║   ╚════██║
8     ███████╗██║╚██████╔╝╚██████╔╝╚██████╔╝██║  ██║   ██║   ███████║
9     ╚══════╝╚═╝ ╚═════╝  ╚═════╝  ╚═════╝ ╚═╝  ╚═╝   ╚═╝   ╚══════╝®
10 
11     DEM simulation engine, released by
12     DCS Computing Gmbh, Linz, Austria
13     http://www.dcs-computing.com, office@dcs-computing.com
14 
15     LIGGGHTS® is part of CFDEM®project:
16     http://www.liggghts.com | http://www.cfdem.com
17 
18     Core developer and main author:
19     Christoph Kloss, christoph.kloss@dcs-computing.com
20 
21     LIGGGHTS® is open-source, distributed under the terms of the GNU Public
22     License, version 2 or later. It is distributed in the hope that it will
23     be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
24     of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You should have
25     received a copy of the GNU General Public License along with LIGGGHTS®.
26     If not, see http://www.gnu.org/licenses . See also top-level README
27     and LICENSE files.
28 
29     LIGGGHTS® and CFDEM® are registered trade marks of DCS Computing GmbH,
30     the producer of the LIGGGHTS® software and the CFDEM®coupling software
31     See http://www.cfdem.com/terms-trademark-policy for details.
32 
33 -------------------------------------------------------------------------
34     Contributing author and copyright for this file:
35     Alexander Podlozhnyuk, DCS Computing GmbH, Linz
36 
37     Copyright 2015-     DCS Computing GmbH, Linz
38 ------------------------------------------------------------------------- */
39 
40 //#ifdef SUPERQUADRIC_ACTIVE_FLAG
41 #ifdef SUPERQUADRIC_ACTIVE_FLAG
42 #include <cmath>
43 #include <stdio.h>
44 #include <string.h>
45 #include "fix_nve_superquadric.h"
46 #include "atom.h"
47 #include "atom_vec.h"
48 #include "update.h"
49 #include "respa.h"
50 #include "force.h"
51 #include "error.h"
52 #include "domain.h"
53 #include "math_extra_liggghts_nonspherical.h"
54 #include "fix_property_atom.h"
55 
56 /* ---------------------------------------------------------------------- */
57 
FixNVESuperquadric(LAMMPS * lmp,int narg,char ** arg)58 FixNVESuperquadric::FixNVESuperquadric(LAMMPS *lmp, int narg, char **arg) :
59   FixNVEAsphereBase(lmp, narg, arg)
60 {
61 
62 }
63 
64 /* ---------------------------------------------------------------------- */
65 
init()66 void FixNVESuperquadric::init()
67 {
68   FixNVEAsphereBase::init();
69 
70   // error checks
71 
72   if (!atom->superquadric_flag )
73     error->all(FLERR,"Fix nve/superquadric requires atom style superquadric");
74 }
75 #endif
76