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

Comparing:
trunk/OOPSE-4/src/UseTheForce/Shapes_FF.cpp (file contents), Revision 1650 by gezelter, Tue Oct 26 22:24:52 2004 UTC vs.
branches/new_design/OOPSE-4/src/UseTheForce/Shapes_FF.cpp (file contents), Revision 1702 by tim, Wed Nov 3 18:00:36 2004 UTC

# Line 306 | Line 306 | void Shapes_FF::initializeAtoms( int nAtoms, Atom** th
306  
307    for( i=0; i<nAtoms; i++ ){
308      
309 <    myTypeString = the_atoms[i]->getType();
309 >    myTypeString = the_atoms[i]->getType().c_str();
310      iter = atomTypeMap.find(myTypeString);
311  
312      if (iter == atomTypeMap.end()) {
313        sprintf( painCave.errMsg,
314                 "AtomType error, %s not found in force file.\n",
315 <               the_atoms[i]->getType() );
315 >               the_atoms[i]->getType().c_str() );
316        painCave.isFatal = 1;
317        simError();
318      } else {
# Line 336 | Line 336 | void Shapes_FF::initializeAtoms( int nAtoms, Atom** th
336  
337          dat = (DirectionalAtomType*)at;
338          dAtom = (DirectionalAtom *) the_atoms[i];
339 <
339 >        
340          momInt = dat->getI();
341  
342          // zero out the moments of inertia matrix
# Line 464 | Line 464 | void Shapes_FF::parseShapeFile(string shapeFileName, S
464          }
465        }
466      }
467 +    shapeFile.getline(inLine, MAXLEN);
468    }
469  
470    // now grab the contact functions
# Line 505 | Line 506 | void Shapes_FF::parseShapeFile(string shapeFileName, S
506          }
507        }
508      }
509 +    shapeFile.getline(inLine, MAXLEN);
510    }
511  
512    // pass contact functions to ShapeType
# Line 550 | Line 552 | void Shapes_FF::parseShapeFile(string shapeFileName, S
552          }
553        }
554      }
555 +    shapeFile.getline(inLine, MAXLEN);
556    }
557  
558    // pass range functions to ShapeType
# Line 594 | Line 597 | void Shapes_FF::parseShapeFile(string shapeFileName, S
597          }
598        }
599      }
600 +    shapeFile.getline(inLine, MAXLEN);
601    }
602  
603    // pass strength functions to ShapeType

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines