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 1764 by gezelter, Tue Jul 3 18:32:27 2012 UTC vs.
Revision 1787 by gezelter, Wed Aug 29 18:13:11 2012 UTC

# Line 54 | Line 54
54   #include "types/FixedChargeAdapter.hpp"
55   #include "types/FluctuatingChargeAdapter.hpp"
56   #include "types/MultipoleAdapter.hpp"
57 + #ifdef HAVE_QHULL
58   #include "math/ConvexHull.hpp"
59   #include "math/AlphaHull.hpp"
60 + #endif
61  
62   using namespace std;
63   namespace OpenMD {
# Line 370 | Line 372 | namespace OpenMD {
372              pCount++;
373            }
374            
375 <          MultipoleAdapter ma = MultipoleAdapter(atom->getAtomType());
376 <          if (ma.isDipole() ) {
375 <            Vector3d u_i = atom->getElectroFrame().getColumn(2);
376 <            moment = ma.getDipoleMoment();
377 <            moment *= debyeToCm;
378 <            dipoleVector += u_i * moment;
375 >          if (atom->isDipole()) {
376 >            dipoleVector += atom->getDipole() * debyeToCm;
377            }
378          }
379        }
# Line 864 | Line 862 | namespace OpenMD {
862  
863    RealType Thermo::getHullVolume(){
864      Snapshot* snap = info_->getSnapshotManager()->getCurrentSnapshot();
867    
868    if (!snap->hasHullVolume) {
865  
866 + #ifdef HAVE_QHULL    
867 +    if (!snap->hasHullVolume) {
868        Hull* surfaceMesh_;
869  
870        Globals* simParams = info_->getSimParams();
# Line 902 | Line 900 | namespace OpenMD {
900        snap->setHullVolume(surfaceMesh_->getVolume());
901      }
902      return snap->getHullVolume();
903 <  }  
903 > #else
904 >    return 0.0;
905 > #endif
906 >  }
907   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines