ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-4/src/UseTheForce/LJFF.cpp
(Generate patch)

Comparing branches/new_design/OOPSE-4/src/UseTheForce/LJFF.cpp (file contents):
Revision 1752 by tim, Tue Nov 16 02:07:14 2004 UTC vs.
Revision 1753 by tim, Thu Nov 18 05:42:06 2004 UTC

# Line 53 | Line 53 | void LJFF::parse(const std::string& filename) {
53      while(ffStream.getline(line, bufferSize)){
54          ++lineNo;
55  
56 <        //a line begins with '#' or '!' is comment which is skipped
56 >        //a line begins with '#' or '!' is comment
57          if (line[0] != '#' ||line[0] != '!') {
58              StringTokenizer tokenizer(line);
59              
60              if (tokenizer.countToken() >= 4) {
61                  atomTypeName = tokenizer.nextToken();
62 <                mass = tokenizer.nextTokenAsFloat();
63 <                epsilon = tokenizer.nextTokenAsFloat();
64 <                sigma = tokenizer.nextTokenAsFloat();
62 >                mass = tokenizer.nextTokenAsDouble();
63 >                epsilon = tokenizer.nextTokenAsDouble();
64 >                sigma = tokenizer.nextTokenAsDouble();
65  
66                  atomType = new AtomType();
67                  atomType->setName(atomTypeName);
# Line 75 | Line 75 | void LJFF::parse(const std::string& filename) {
75                  atomType->addProperty(new DoubleGenericData("Epsilon", epsilon));                                
76                  atomType->addProperty(new DoubleGenericData("Sigma", sigma));                                
77                  atomType->complete();
78 <                //notify a new LJtype atom type is created
78 >
79 >                //notify fortran a new LJtype atom type is created
80                  newLJtype(&ident, &sigma, &epsilon, &status);
81  
82                  //add atom type to AtomTypeContainer

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines