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

Comparing trunk/OOPSE/libmdtools/ForceFields.cpp (file contents):
Revision 443 by mmeineke, Wed Apr 2 22:19:03 2003 UTC vs.
Revision 447 by mmeineke, Thu Apr 3 20:21:54 2003 UTC

# Line 2 | Line 2
2  
3   #ifdef IS_MPI
4   #include <mpi.h>
5 #include <mpi++.h>
5   #endif // is_mpi
6  
7  
# Line 16 | Line 15 | void ForceFields::calcRcut( void ){
15  
16   #ifdef IS_MPI
17    double tempBig = bigSigma;
18 <  MPI::COMM_WORLD.Allreduce( &tempBig, &bigSigma, 1, MPI_DOUBLE, MPI_MAX );
18 >  MPI_Allreduce( &tempBig, &bigSigma, 1, MPI_DOUBLE, MPI_MAX,
19 >                 MPI_COMM_WORLD);
20   #endif  //is_mpi
21  
22    //calc rCut and rList
# Line 58 | Line 58 | void ForceFields::doForces( int calcPot, int calcStres
58    for(i=0; i<entry_plug->n_atoms; i++){
59      entry_plug->atoms[i]->zeroForces();
60  
61 <    if( entry_plug->atoms[i]->isDirectional() ){
62 <      dAtom = (DirectionalAtom *)entry_plug->atoms[i];
63 <      dAtom->getU(ut);
61 > //     if( entry_plug->atoms[i]->isDirectional() ){
62 > //       dAtom = (DirectionalAtom *)entry_plug->atoms[i];
63 > //       dAtom->getU(ut);
64      
65  
66 <      if(dAtom->getIndex()== 1){
67 <        std::cerr << "atom 2's u_l = " << ut[0] << ", " << ut[1]
68 <                  << ", " << ut[2] << "\n";
69 <      }
70 <    }
66 > //       if(dAtom->getIndex()== 1){
67 > //      std::cerr << "atom 2's u_l = " << ut[0] << ", " << ut[1]
68 > //                << ", " << ut[2] << "\n";
69 > //       }
70 > //     }
71      
72    }
73  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines