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

Comparing trunk/OOPSE-4/src/io/MultipoleAtomTypesSectionParser.cpp (file contents):
Revision 2097 by tim, Wed Mar 9 17:30:29 2005 UTC vs.
Revision 2098 by tim, Wed Mar 9 17:58:33 2005 UTC

# Line 85 | Line 85 | void MultipoleAtomTypesSectionParser::parseLine(ForceF
85  
86          AtomType* atomType = ff.getAtomType(atomTypeName);
87          if (atomType == NULL) {
88 <            sprintf(painCave.errMsg, "MultipoleAtomTypesSectionParser Error: Can not find matched AtomType at line %d\n",
89 <                    lineNo);
88 >            sprintf(painCave.errMsg, "MultipoleAtomTypesSectionParser Error: Can not find matched AtomType[%s] at line %d\n",
89 >                    atomTypeName.c_str(), lineNo);
90              painCave.isFatal = 1;
91              simError();
92          }
93          
94          DirectionalAtomType* dAtomType = dynamic_cast<DirectionalAtomType*>(atomType);            
95          if (dAtomType == NULL) {
96 <            sprintf(painCave.errMsg, "MultipoleAtomTypesSectionParser Error: Can not Cast Atom to DirectionalAtom at line \n");
96 >            sprintf(painCave.errMsg, "MultipoleAtomTypesSectionParser Error: Can not Cast Atom to DirectionalAtom at line %d\n", lineNo);
97              painCave.isFatal = 1;
98              simError();
99          }        

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines