ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/LJFF.cpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/LJFF.cpp (file contents):
Revision 559 by mmeineke, Thu Jun 19 22:02:44 2003 UTC vs.
Revision 561 by mmeineke, Fri Jun 20 20:29:36 2003 UTC

# Line 65 | Line 65 | namespace LJ_NS{
65        if( !strcmp( info.name, name ) ){
66          sprintf( painCave.errMsg,
67                   "Duplicate LJ atom type \"%s\" found in "
68 <                 "the LJ_FF param file./n",
68 >                 "the LJFF param file./n",
69                   name );
70          painCave.isFatal = 1;
71          simError();
# Line 117 | Line 117 | LJ_FF::LJ_FF(){
117   //****************************************************************
118  
119  
120 < LJ_FF::LJ_FF(){
120 > LJFF::LJFF(){
121  
122    char fileName[200];
123    char* ffPath_env = "FORCE_PARAM_PATH";
# Line 162 | Line 162 | LJ_FF::LJ_FF(){
162      
163      // generate the force file name
164      
165 <    strcpy( fileName, "LJ_FF.frc" );
166 <    //    fprintf( stderr,"Trying to open %s\n", fileName );
165 >    strcpy( fileName, "LJFF.frc" );
166 >    fprintf( stderr,"Trying to open %s\n", fileName );
167      
168      // attempt to open the file in the current directory first.
169      
# Line 201 | Line 201 | LJ_FF::LJ_FF(){
201   #ifdef IS_MPI
202    }
203    
204 <  sprintf( checkPointMsg, "LJ_FF file opened sucessfully." );
204 >  sprintf( checkPointMsg, "LJFF file opened sucessfully." );
205    MPIcheckPoint();
206    
207   #endif // is_mpi
208   }
209  
210  
211 < LJ_FF::~LJ_FF(){
211 > LJFF::~LJFF(){
212  
213    if( headAtomType != NULL ) delete headAtomType;
214  
# Line 223 | Line 223 | void LJ_FF::initForceField( int ljMixRule ){
223   #endif // is_mpi
224   }
225  
226 < void LJ_FF::initForceField( int ljMixRule ){
226 > void LJFF::initForceField( int ljMixRule ){
227    
228    initFortran( ljMixRule, 0 );
229   }
230  
231 < void LJ_FF::cleanMe( void ){
231 > void LJFF::cleanMe( void ){
232  
233   #ifdef IS_MPI
234    
# Line 243 | Line 243 | void LJ_FF::readParams( void ){
243   #endif // is_mpi
244   }
245  
246 < void LJ_FF::readParams( void ){
246 > void LJFF::readParams( void ){
247  
248    atomStruct info;
249    info.last = 1; // initialize last to have the last set.
# Line 303 | Line 303 | void LJ_FF::readParams( void ){
303      // send out the linked list to all the other processes
304  
305      sprintf( checkPointMsg,
306 <             "LJ_FF atom structures read successfully." );
306 >             "LJFF atom structures read successfully." );
307      MPIcheckPoint();
308  
309      currentAtomType = headAtomType->next; //skip the first element who is a place holder.
# Line 388 | Line 388 | void LJ_FF::readParams( void ){
388  
389   #ifdef IS_MPI
390    sprintf( checkPointMsg,
391 <           "LJ_FF atom structures successfully sent to fortran\n" );
391 >           "LJFF atom structures successfully sent to fortran\n" );
392    MPIcheckPoint();
393   #endif // is_mpi
394  
395   }
396  
397  
398 < void LJ_FF::initializeAtoms( int nAtoms, Atom** the_atoms ){
398 > void LJFF::initializeAtoms( int nAtoms, Atom** the_atoms ){
399    
400    int i;
401  
# Line 425 | Line 425 | void LJ_FF::initializeBonds( int nBonds, Bond** BondAr
425    }
426   }
427  
428 < void LJ_FF::initializeBonds( int nBonds, Bond** BondArray,
428 > void LJFF::initializeBonds( int nBonds, Bond** BondArray,
429                               bond_pair* the_bonds ){
430    
431      if( nBonds ){
432        sprintf( painCave.errMsg,
433 <               "LJ_FF does not support bonds.\n" );
433 >               "LJFF does not support bonds.\n" );
434        painCave.isFatal = 1;
435        simError();
436      }
437   }
438  
439 < void LJ_FF::initializeBends( int nBends, Bend** bendArray,
439 > void LJFF::initializeBends( int nBends, Bend** bendArray,
440                               bend_set* the_bends ){
441  
442      if( nBends ){
443        sprintf( painCave.errMsg,
444 <               "LJ_FF does not support bends.\n" );
444 >               "LJFF does not support bends.\n" );
445        painCave.isFatal = 1;
446        simError();
447      }
448   }
449  
450 < void LJ_FF::initializeTorsions( int nTorsions, Torsion** torsionArray,
450 > void LJFF::initializeTorsions( int nTorsions, Torsion** torsionArray,
451                                  torsion_set* the_torsions ){
452  
453      if( nTorsions ){
454        sprintf( painCave.errMsg,
455 <               "LJ_FF does not support torsions.\n" );
455 >               "LJFF does not support torsions.\n" );
456        painCave.isFatal = 1;
457        simError();
458      }
459   }
460  
461 < void LJ_FF::fastForward( char* stopText, char* searchOwner ){
461 > void LJFF::fastForward( char* stopText, char* searchOwner ){
462  
463    int foundText = 0;
464    char* the_token;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines