/usr/include/liggghts/fix_property_atom.h is in libliggghts-dev 2.3.8-1build1.
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 | /* ----------------------------------------------------------------------
LIGGGHTS - LAMMPS Improved for General Granular and Granular Heat
Transfer Simulations
LIGGGHTS is part of the CFDEMproject
www.liggghts.com | www.cfdem.com
Christoph Kloss, christoph.kloss@cfdem.com
Copyright 2009-2012 JKU Linz
Copyright 2012- DCS Computing GmbH, Linz
LIGGGHTS is based on LAMMPS
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
This software is distributed under the GNU General Public License.
See the README file in the top-level directory.
------------------------------------------------------------------------- */
#ifdef FIX_CLASS
FixStyle(property/atom,FixPropertyAtom)
#else
#ifndef LMP_FIX_PROPERTY_ATOM_H
#define LMP_FIX_PROPERTY_ATOM_H
#include "fix.h"
#include "input.h"
namespace LAMMPS_NS {
enum
{
FIXPROPERTY_ATOM_SCALAR = 0,
FIXPROPERTY_ATOM_VECTOR = 1
};
class FixPropertyAtom : public Fix {
friend class Set;
public:
FixPropertyAtom(class LAMMPS *, int, char **,bool parse = true);
~FixPropertyAtom();
virtual int setmask();
void do_forward_comm();
void do_reverse_comm();
Fix* check_fix(const char *varname,const char *svmstyle,int len1,int len2,const char *caller,bool errflag);
double memory_usage();
void grow_arrays(int);
void copy_arrays(int, int);
virtual void set_arrays(int);
int pack_exchange(int, double *);
int unpack_exchange(int, double *);
int pack_restart(int, double *);
void unpack_restart(int, int);
int size_restart(int);
int maxsize_restart();
int pack_comm(int, int *, double *, int, int *);
void unpack_comm(int, int, double *);
int pack_reverse_comm(int, int, double *);
void unpack_reverse_comm(int, int *, double *);
double compute_vector(int n);
virtual void mark_tracers(int ilo, int ihi) {}
protected:
void parse_args(int narg, char **arg);
private:
char *variablename; // name of the variable (used for identification by other fixes)
int data_style; // 0 if a scalar is registered, 1 if vector
int commGhost; // 1 if communicated to ghost particles (via pack_comm/unpack_comm), 0 if not
int commGhostRev; // 1 if rev communicated from ghost particles (via pack_comm_rev/unpack_comm_rev), 0 if not
int nvalues;
double *defaultvalues; // default values at particle creation
}; //end class
}
#endif
#endif
|