"LIGGGHTS WWW Site"_liws - "LAMMPS WWW Site"_lws - "LIGGGHTS Documentation"_ld - "LIGGGHTS Commands"_lc :c

:link(liws,http://www.cfdem.com)
:link(lws,http://lammps.sandia.gov)
:link(ld,Manual.html)
:link(lc,Section_commands.html#comm)

:line

LIGGGHTS 2.X Coding Manual :h1

Introduction: :h2

This is a short coding manual for LIGGGHTS 2.X 

A short list of guidelines :h2

class data members should be denoted with a [_] (like {x_}) :l
inline access functions should be used to get access to {x_}, like {x()} :l
class data members , both {x_particle_} and {xParticle_} are allowed :l
template params should be written in LARGE_CAPS :l
file names like fix_mesh_gran.cpp, mesh_mover.h :l
fix style fix move/mesh/gran is in file fix_move_mesh_gran.cpp/h :l
header guard in file fix_foo_model.h like LMP_FIX_FOO_MODEL_H :l
coding format should be ANSI :l
for fixes, use error->fix_error to throw error messages in constructors, this enhances object orientation :l


Files which are especially :h2


