ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE_old/src/mdtools/libmdCode/LJ_FF.cpp
(Generate patch)

Comparing trunk/OOPSE_old/src/mdtools/libmdCode/LJ_FF.cpp (file contents):
Revision 299 by mmeineke, Fri Mar 7 19:31:02 2003 UTC vs.
Revision 348 by mmeineke, Fri Mar 14 21:33:10 2003 UTC

# Line 22 | Line 22 | namespace {
22  
23  
24  
25 < namespace {
25 > namespace LJ_NS{
26  
27    // Declare the structures that will be passed by the parser and  MPI
28    
# Line 45 | Line 45 | namespace {
45   #endif
46   }
47  
48 + using namespace LJ_NS;
49  
50   //****************************************************************
51   // begins the actual forcefield stuff.  
# Line 106 | Line 107 | LJ_FF::LJ_FF(){
107        
108        ffPath = getenv( ffPath_env );
109        if( ffPath == NULL ) {
110 <        sprintf( painCave.errMsg,
110 <                 "Error opening the force field parameter file: %s\n"
111 <                 "Have you tried setting the FORCE_PARAM_PATH environment "
112 <                 "vairable?\n",
113 <                 fileName );
114 <        painCave.isFatal = 1;
115 <        simError();
110 >        STR_DEFINE(ffPath, FRC_PATH );
111        }
112        
113        
# Line 273 | Line 268 | void LJ_FF::initializeAtoms( void ){
268        if( readLine[0] != '!' ){
269          
270          // the parser returns 0 if the line was blank
271 <        if( parseAtomLJ( readLine, lineNum, info ) ){
271 >        if( parseAtom( readLine, lineNum, info ) ){
272            info.ident = identNum;
273            headAtomType->add( info );;
274            identNum++;
# Line 352 | Line 347 | void LJ_FF::initializeAtoms( void ){
347      
348      if( currentAtomType->name[0] != '\0' ){
349        isError = 0;
350 <      newAtype( &(currentAtomType->ident),
350 >      makeAtype( &(currentAtomType->ident),
351                  &(currentAtomType->mass),
352                  &(currentAtomType->epslon),
353                  &(currentAtomType->sigma),

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines