/usr/include/liggghts/modify.h is in libliggghts-dev 3.5.0+repack1-10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 | /* ----------------------------------------------------------------------
This is the
██╗ ██╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗████████╗███████╗
██║ ██║██╔════╝ ██╔════╝ ██╔════╝ ██║ ██║╚══██╔══╝██╔════╝
██║ ██║██║ ███╗██║ ███╗██║ ███╗███████║ ██║ ███████╗
██║ ██║██║ ██║██║ ██║██║ ██║██╔══██║ ██║ ╚════██║
███████╗██║╚██████╔╝╚██████╔╝╚██████╔╝██║ ██║ ██║ ███████║
╚══════╝╚═╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝®
DEM simulation engine, released by
DCS Computing Gmbh, Linz, Austria
http://www.dcs-computing.com, office@dcs-computing.com
LIGGGHTS® is part of CFDEM®project:
http://www.liggghts.com | http://www.cfdem.com
Core developer and main author:
Christoph Kloss, christoph.kloss@dcs-computing.com
LIGGGHTS® is open-source, distributed under the terms of the GNU Public
License, version 2 or later. It is distributed in the hope that it will
be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You should have
received a copy of the GNU General Public License along with LIGGGHTS®.
If not, see http://www.gnu.org/licenses . See also top-level README
and LICENSE files.
LIGGGHTS® and CFDEM® are registered trade marks of DCS Computing GmbH,
the producer of the LIGGGHTS® software and the CFDEM®coupling software
See http://www.cfdem.com/terms-trademark-policy for details.
-------------------------------------------------------------------------
Contributing author and copyright for this file:
This file is from LAMMPS, but has been modified. Copyright for
modification:
Copyright 2012- DCS Computing GmbH, Linz
Copyright 2009-2012 JKU Linz
Copyright of original file:
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software. This software is distributed under
the GNU General Public License.
------------------------------------------------------------------------- */
#ifndef LMP_MODIFY_H
#define LMP_MODIFY_H
#include <stdio.h>
#include "pointers.h"
#include "fix.h"
#include <map>
#include <string>
namespace LAMMPS_NS {
class Modify : protected Pointers {
friend class Info;
public:
int nfix,maxfix;
int n_initial_integrate,n_post_integrate,n_pre_exchange,n_pre_neighbor;
int n_pre_force,n_post_force;
int n_iterate_implicitly;
int n_final_integrate,n_end_of_step,n_thermo_energy;
int n_initial_integrate_respa,n_post_integrate_respa;
int n_pre_force_respa,n_post_force_respa,n_final_integrate_respa;
int n_min_pre_exchange,n_min_pre_neighbor;
int n_min_pre_force,n_min_post_force,n_min_energy;
int restart_pbc_any; // 1 if any fix sets restart_pbc
int nfix_restart_global; // stored fix global info from restart file
int nfix_restart_peratom; // stored fix peratom info from restart file
class Fix **fix; // list of fixes
int *fmask; // bit mask for when each fix is applied
int timing; // 1 if fix calls are timed
int ncompute,maxcompute; // list of computes
class Compute **compute;
Modify(class LAMMPS *);
virtual ~Modify();
virtual void init();
virtual void setup(int);
virtual void setup_pre_exchange();
virtual void setup_pre_neighbor();
virtual void setup_pre_force(int);
virtual void initial_integrate(int);
virtual void post_integrate();
void pre_decide();
virtual void pre_exchange();
virtual void pre_neighbor();
virtual void pre_force(int);
virtual void post_force(int);
virtual void final_integrate();
virtual bool iterate_implicitly();
virtual void end_of_step();
virtual double thermo_energy();
virtual void post_run();
void setup_pre_force_respa(int, int);
void initial_integrate_respa(int, int, int);
void post_integrate_respa(int, int);
void pre_force_respa(int, int, int);
void post_force_respa(int, int, int);
void final_integrate_respa(int, int);
void min_pre_exchange();
void min_pre_neighbor();
void min_pre_force(int);
void min_post_force(int);
double min_energy(double *);
void min_store();
void min_step(double, double *);
void min_clearstore();
void min_pushstore();
void min_popstore();
int min_reset_ref();
double max_alpha(double *);
int min_dof();
void add_fix(int, char **, char *suffix = NULL);
void modify_fix(int, char **);
void delete_fix(const char *,bool unfixflag = false);
int find_fix(const char *);
class FixPropertyGlobal* add_fix_property_global(int narg,char **arg,const char *);
class FixPropertyAtom* add_fix_property_atom(int narg,char **arg,const char *);
class Fix* find_fix_property(const char *,const char *,const char *,int ,int,const char * );
class Fix* find_fix_property(const char *,const char *,const char *,int ,int,const char *,bool );
class Fix* find_fix_id(const char *id);
class Compute* find_compute_id(const char *id);
class Fix* find_fix_id_style(const char *id,const char *style);
class Fix* find_fix_style(const char *style, int rank);
class Fix* find_fix_style_strict(const char *style, int rank);
class Compute* find_compute_style_strict(const char *style, int rank);
int n_fixes_style(const char *style);
int n_computes_style(const char *style);
int n_fixes_style_strict(const char *style);
int n_fixes_property_atom_not_internal();
int dump_size_fixes_property_atom_not_internal();
class FixPropertyAtom* find_fix_property_atom_not_internal(int rank);
bool i_am_first_of_style(class Fix *fix_to_check);
int index_first_fix_of_style(const char *style);
int index_last_fix_of_style(const char *style);
int my_index(class Fix *fixptr);
int index_first_fix_with_function(const int FUNCTION, bool integrate=false);
class FixScalarTransportEquation* find_fix_scalar_transport_equation(const char *equation_id);
class FixScalarTransportEquation* find_fix_scalar_transport_equation_strict(const char *equation_id);
void box_extent(double &xlo,double &xhi,double &ylo,double &yhi,double &zlo,double &zhi);
void add_compute(int, char **, char *suffix = NULL);
void modify_compute(int, char **);
void delete_compute(const char *,bool uncomputeflag = false);
int find_compute(const char *);
void clearstep_compute();
void addstep_compute(bigint);
void addstep_compute_all(bigint);
void write_restart(FILE *);
int read_restart(FILE *);
void restart_deallocate();
bigint memory_usage();
int fix_restart_in_progress();
bool have_restart_data(Fix *f);
void max_min_rad(double &maxrad,double &minrad);
protected:
// lists of fixes to apply at different stages of timestep
int *list_initial_integrate,*list_post_integrate;
int *list_pre_exchange,*list_pre_neighbor;
int *list_pre_force,*list_post_force;
int *list_iterate_implicitly;
int *list_final_integrate,*list_end_of_step,*list_thermo_energy;
int *list_initial_integrate_respa,*list_post_integrate_respa;
int *list_pre_force_respa,*list_post_force_respa;
int *list_final_integrate_respa;
int *list_min_pre_exchange,*list_min_pre_neighbor;
int *list_min_pre_force,*list_min_post_force;
int *list_min_energy;
int *end_of_step_every;
int n_timeflag; // list of computes that store time invocation
int *list_timeflag;
char **id_restart_global; // stored fix global info
char **style_restart_global; // from read-in restart file
char **state_restart_global;
char **id_restart_peratom; // stored fix peratom info
char **style_restart_peratom; // from read-in restart file
int *index_restart_peratom;
int index_permanent; // fix/compute index returned to library call
void list_init(int, int &, int *&);
void list_init_end_of_step(int, int &, int *&);
void list_init_thermo_energy(int, int &, int *&);
void list_init_compute();
private:
inline void call_method_on_fixes(FixMethod method);
inline void call_method_on_fixes(FixMethod method, int *& ilist, int & inum);
inline void call_method_on_fixes(FixMethodWithVFlag method, int vflag);
inline void call_method_on_fixes(FixMethodWithVFlag method, int vflag, int *& ilist, int & inum);
inline void call_respa_method_on_fixes(FixMethodRESPA2 method, int arg1, int arg2, int *& ilist, int & inum);
inline void call_respa_method_on_fixes(FixMethodRESPA3 method, int arg1, int arg2, int arg3, int *& ilist, int & inum);
typedef Compute *(*ComputeCreator)(LAMMPS *, int, char **);
std::map<std::string,ComputeCreator> *compute_map;
typedef Fix *(*FixCreator)(LAMMPS *, int, char **);
std::map<std::string,FixCreator> *fix_map;
template <typename T> static Compute *compute_creator(LAMMPS *, int, char **);
template <typename T> static Fix *fix_creator(LAMMPS *, int, char **);
};
}
#endif
/* ERROR/WARNING messages:
W: One or more atoms are time integrated more than once
This is probably an error since you typically do not want to
advance the positions or velocities of an atom more than once
per timestep.
E: Illegal ... command
Self-explanatory. Check the input script syntax and compare to the
documentation for the command. You can use -echo screen as a
command-line option when running LAMMPS to see the offending line.
E: Fix command before simulation box is defined
The fix command cannot be used before a read_data, read_restart, or
create_box command.
E: Could not find fix group ID
A group ID used in the fix command does not exist.
E: Replacing a fix, but new style != old style
A fix ID can be used a 2nd time, but only if the style matches the
previous fix. In this case it is assumed you with to reset a fix's
parameters. This error may mean you are mistakenly re-using a fix ID
when you do not intend to.
W: Replacing a fix, but new group != old group
The ID and style of a fix match for a fix you are changing with a fix
command, but the new group you are specifying does not match the old
group.
E: Invalid fix style
The choice of fix style is unknown.
E: Could not find fix_modify ID
A fix ID used in the fix_modify command does not exist.
E: Could not find fix ID to delete
Self-explanatory.
E: Reuse of compute ID
A compute ID cannot be used twice.
E: Invalid compute style
Self-explanatory.
E: Could not find compute_modify ID
Self-explanatory.
E: Could not find compute ID to delete
Self-explanatory.
*/
|