forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3662 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
05f1a5f7d2
commit
2e81205b4a
|
@ -56,11 +56,15 @@ command like
|
||||||
</P>
|
</P>
|
||||||
<PRE>pair_style foo 0.1 3.5
|
<PRE>pair_style foo 0.1 3.5
|
||||||
</PRE>
|
</PRE>
|
||||||
<P>then these lines should appear at the top of your pair_foo.h file:
|
<P>then your pair_foo.h file should be structured as follows:
|
||||||
</P>
|
</P>
|
||||||
<PRE>#ifdef PAIR_CLASS
|
<PRE>#ifdef PAIR_CLASS
|
||||||
PairStyle(foo,PairFoo)
|
PairStyle(foo,PairFoo)
|
||||||
#else
|
#else
|
||||||
|
...
|
||||||
|
(class definition for PairFoo)
|
||||||
|
...
|
||||||
|
#endif
|
||||||
</PRE>
|
</PRE>
|
||||||
<P>where "foo" is the style keyword in the pair_style command, and
|
<P>where "foo" is the style keyword in the pair_style command, and
|
||||||
PairFoo is the class name defined in your pair_foo.cpp and pair_foo.h
|
PairFoo is the class name defined in your pair_foo.cpp and pair_foo.h
|
||||||
|
|
|
@ -53,11 +53,15 @@ command like
|
||||||
|
|
||||||
pair_style foo 0.1 3.5 :pre
|
pair_style foo 0.1 3.5 :pre
|
||||||
|
|
||||||
then these lines should appear at the top of your pair_foo.h file:
|
then your pair_foo.h file should be structured as follows:
|
||||||
|
|
||||||
#ifdef PAIR_CLASS
|
#ifdef PAIR_CLASS
|
||||||
PairStyle(foo,PairFoo)
|
PairStyle(foo,PairFoo)
|
||||||
#else :pre
|
#else
|
||||||
|
...
|
||||||
|
(class definition for PairFoo)
|
||||||
|
...
|
||||||
|
#endif :pre
|
||||||
|
|
||||||
where "foo" is the style keyword in the pair_style command, and
|
where "foo" is the style keyword in the pair_style command, and
|
||||||
PairFoo is the class name defined in your pair_foo.cpp and pair_foo.h
|
PairFoo is the class name defined in your pair_foo.cpp and pair_foo.h
|
||||||
|
|
Loading…
Reference in New Issue