ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/io/AtomTypesSectionParser.cpp
(Generate patch)

Comparing trunk/OOPSE-4/src/io/AtomTypesSectionParser.cpp (file contents):
Revision 1956 by gezelter, Wed Jan 12 22:41:40 2005 UTC vs.
Revision 1957 by tim, Tue Jan 25 17:45:23 2005 UTC

# Line 42 | Line 42 | namespace oopse {
42   #include "io/AtomTypesSectionParser.hpp"
43   #include "types/AtomType.hpp"
44   #include "UseTheForce/ForceField.hpp"
45 + #include "utils/simError.h"
46   namespace oopse {
47  
48   AtomTypesSectionParser::AtomTypesSectionParser() {
# Line 55 | Line 56 | void AtomTypesSectionParser::parseLine(ForceField& ff,
56      //in AtomTypeSection, a line at least contains 2 tokens
57      //atomTypeName and mass
58      if (nTokens < 2)  {
59 <                      
59 >        sprintf(painCave.errMsg, "AtomTypesSectionParser Error: Not enough tokens at line %d\n",
60 >                lineNo);
61 >        painCave.isFatal = 1;
62 >        simError();
63 >            
64      } else {
65  
66          std::string atomTypeName = tokenizer.nextToken();    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines