From 2e81205b4a5e1dcc93a2d37a6c8c0f0cfb3687c6 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Tue, 12 Jan 2010 16:44:26 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3662 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- doc/Section_modify.html | 8 ++++++-- doc/Section_modify.txt | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/doc/Section_modify.html b/doc/Section_modify.html index 83b0eaf93c..271f2f777d 100644 --- a/doc/Section_modify.html +++ b/doc/Section_modify.html @@ -56,11 +56,15 @@ command like

pair_style foo 0.1 3.5 
 
-

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
 PairStyle(foo,PairFoo)
-#else 
+#else
+...
+(class definition for PairFoo)
+...
+#endif 
 

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 diff --git a/doc/Section_modify.txt b/doc/Section_modify.txt index c4eef5771d..fe81eaefa2 100644 --- a/doc/Section_modify.txt +++ b/doc/Section_modify.txt @@ -53,11 +53,15 @@ command like 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 PairStyle(foo,PairFoo) -#else :pre +#else +... +(class definition for PairFoo) +... +#endif :pre 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