File: liggghts_2.X_coding.html

package info (click to toggle)
liggghts 3.0.3%2Brepack-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 106,076 kB
  • ctags: 34,406
  • sloc: cpp: 363,723; python: 21,138; ansic: 9,146; perl: 3,687; sh: 2,841; fortran: 2,802; xml: 788; makefile: 485; objc: 238; lisp: 169; f90: 145; csh: 16; awk: 14
file content (42 lines) | stat: -rw-r--r-- 1,117 bytes parent folder | download | duplicates (2)
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
<HTML>
<CENTER><A HREF = "http://www.cfdem.com">LIGGGHTS WWW Site</A> - <A HREF = "http://lammps.sandia.gov">LAMMPS WWW Site</A> - <A HREF = "Manual.html">LIGGGHTS Documentation</A> - <A HREF = "Section_commands.html#comm">LIGGGHTS Commands</A> 
</CENTER>








<HR>

<H1>LIGGGHTS 2.X Coding Manual 
</H1>
<H2>Introduction: 
</H2>
<P>This is a short coding manual for LIGGGHTS 2.X 
</P>
<H2>A short list of guidelines 
</H2>
<LI>class data members should be denoted with a <B>_</B> (like <I>x_</I>) 

<LI>inline access functions should be used to get access to <I>x_</I>, like <I>x()</I> 

<LI>class data members , both <I>x_particle_</I> and <I>xParticle_</I> are allowed 

<LI>template params should be written in LARGE_CAPS 

<LI>file names like fix_mesh_gran.cpp, mesh_mover.h 

<LI>fix style fix move/mesh/gran is in file fix_move_mesh_gran.cpp/h 

<LI>header guard in file fix_foo_model.h like LMP_FIX_FOO_MODEL_H 

<LI>coding format should be ANSI 

<LI>for fixes, use error->fix_error to throw error messages in constructors, this enhances object orientation 

<H2>Files which are especially 
</H2>
</HTML>