ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/brains/Thermo.cpp
(Generate patch)

Comparing trunk/src/brains/Thermo.cpp (file contents):
Revision 1292 by chuckv, Fri Sep 12 20:51:22 2008 UTC vs.
Revision 1313 by gezelter, Wed Oct 22 20:01:49 2008 UTC

# Line 249 | Line 249 | namespace oopse {
249          Vector3d pos1, pos2, rab;
250  
251   #ifdef IS_MPI        
252 +        std::cerr << "tap = " << tap.first << "  " << tap.second << std::endl;
253  
254          int mol1 = info_->getGlobalMolMembership(tap.first);
255          int mol2 = info_->getGlobalMolMembership(tap.second);
256 <        
256 >        std::cerr << "mols = " << mol1 << " " << mol2 << std::endl;
257 >
258          int proc1 = info_->getMolToProc(mol1);
259          int proc2 = info_->getMolToProc(mol2);
260  
261 +        std::cerr << " procs = " << proc1 << " " <<proc2 <<std::endl;
262 +
263          RealType data[3];
264          if (proc1 == worldRank) {
265            StuntDouble* sd1 = info_->getIOIndexToIntegrableObject(tap.first);
266 +          std::cerr << " on proc " << proc1 << ", sd1 has global index= " << sd1->getGlobalIndex() << std::endl;
267            pos1 = sd1->getPos();
268            data[0] = pos1.x();
269            data[1] = pos1.y();
# Line 272 | Line 277 | namespace oopse {
277  
278          if (proc2 == worldRank) {
279            StuntDouble* sd2 = info_->getIOIndexToIntegrableObject(tap.second);
280 +          std::cerr << " on proc " << proc2 << ", sd2 has global index= " << sd2->getGlobalIndex() << std::endl;
281            pos2 = sd2->getPos();
282            data[0] = pos2.x();
283            data[1] = pos2.y();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines