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

Comparing branches/development/src/brains/Thermo.cpp (file contents):
Revision 1767 by gezelter, Fri Jul 6 22:01:58 2012 UTC vs.
Revision 1798 by gezelter, Thu Sep 13 14:10:11 2012 UTC

# Line 372 | Line 372 | namespace OpenMD {
372              pCount++;
373            }
374            
375 <          MultipoleAdapter ma = MultipoleAdapter(atom->getAtomType());
376 <          if (ma.isDipole() ) {
377 <            Vector3d u_i = atom->getElectroFrame().getColumn(2);
378 <            moment = ma.getDipoleMoment();
379 <            moment *= debyeToCm;
380 <            dipoleVector += u_i * moment;
375 >          if (atom->isDipole()) {
376 >            dipoleVector += atom->getDipole() * debyeToCm;
377            }
378          }
379        }
# Line 832 | Line 828 | namespace OpenMD {
828            data[0] = pos1.x();
829            data[1] = pos1.y();
830            data[2] = pos1.z();          
831 <          MPI_Bcast(data, 3, MPI_REALTYPE, proc1, MPI_COMM_WORLD);
831 >          MPI::COMM_WORLD.Bcast(data, 3, MPI::REALTYPE, proc1);
832          } else {
833 <          MPI_Bcast(data, 3, MPI_REALTYPE, proc1, MPI_COMM_WORLD);
833 >          MPI::COMM_WORLD.Bcast(data, 3, MPI::REALTYPE, proc1);
834            pos1 = Vector3d(data);
835          }
836  
# Line 843 | Line 839 | namespace OpenMD {
839            pos2 = sd2->getPos();
840            data[0] = pos2.x();
841            data[1] = pos2.y();
842 <          data[2] = pos2.z();          
843 <          MPI_Bcast(data, 3, MPI_REALTYPE, proc2, MPI_COMM_WORLD);
842 >          data[2] = pos2.z();  
843 >          MPI::COMM_WORLD.Bcast(data, 3, MPI::REALTYPE, proc2);
844          } else {
845 <          MPI_Bcast(data, 3, MPI_REALTYPE, proc2, MPI_COMM_WORLD);
845 >          MPI::COMM_WORLD.Bcast(data, 3, MPI::REALTYPE, proc2);
846            pos2 = Vector3d(data);
847          }
848   #else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines