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

Comparing trunk/mdtools/interface_implementation/LJ_FF.cpp (file contents):
Revision 252 by chuckv, Tue Jan 28 22:16:55 2003 UTC vs.
Revision 253 by chuckv, Thu Jan 30 15:20:21 2003 UTC

# Line 605 | Line 605 | int parseAtomLJ( char *lineBuffer, int lineNum,  atomS
605   }
606  
607  
608 < void LJ_FF::doForces( void ){
608 > void LJ_FF::doForces( int calcPot ){
609  
610    int i;
611    double* frc;
612    double* pos;
613 <  short int calcPot = 1;
613 >  short int passedCalcPot = (short int)calcPot;
614  
615    // forces are zeroed here, before any are acumulated.
616    // NOTE: do not rezero the forces in Fortran.
# Line 622 | Line 622 | void LJ_FF::doForces( void ){
622    frc = Atom::getFrcArray();
623    pos = Atom::getPosArray();
624  
625 <  doLJfortran( pos, frc, &(entry_plug->lrPot), &calcPot );
625 > //   entry_plug->lrPot = -1;
626 >  doLJfortran( pos, frc, &(entry_plug->lrPot), &passedCalcPot );
627 >
628 >
629 > //  fprintf( stderr,
630 > //         "lrPot =  %lf\n", entry_plug->lrPot );
631 >  
632   }
633    
634   void LJ_FF::initFortran( void ){

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines