ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/parallel/ForceDecomposition.cpp
(Generate patch)

Comparing branches/development/src/parallel/ForceDecomposition.cpp (file contents):
Revision 1582 by gezelter, Tue Jun 14 20:41:44 2011 UTC vs.
Revision 1591 by gezelter, Tue Jul 12 15:25:07 2011 UTC

# Line 88 | Line 88 | namespace OpenMD {
88    }
89  
90    void ForceDecomposition::fillSelfData(SelfData &sdat, int atom1) {
91 <    
92 <    // Still Missing atype, skippedCharge, potVec pot,
91 >
92 >    sdat.atype = atypesLocal[atom1];
93 >        
94 >    // Still Missing skippedCharge
95      if (storageLayout_ & DataStorage::dslElectroFrame) {
96        sdat.eFrame = &(snap_->atomData.electroFrame[atom1]);
97      }
# Line 110 | Line 112 | namespace OpenMD {
112        sdat.dfrhodrho = &(snap_->atomData.functionalDerivative[atom1]);
113      }
114  
115 +    if (storageLayout_ & DataStorage::dslSkippedCharge) {
116 +      sdat.skippedCharge = &(snap_->atomData.skippedCharge[atom1]);
117 +    }
118 +
119      if (storageLayout_ & DataStorage::dslParticlePot) {
120        sdat.particlePot = &(snap_->atomData.particlePot[atom1]);
121      }
# Line 122 | Line 128 | namespace OpenMD {
128      // if we have changed the group identities or haven't set up the
129      // saved positions we automatically will need a neighbor list update:
130  
131 <    if ( saved_CG_positions_.size() != nGroups ) {
126 <      cerr << "build because size\n";
127 <      return true;
128 <    }
131 >    if ( saved_CG_positions_.size() != nGroups ) return true;
132  
133      RealType dispmax = 0.0;
134      Vector3d disp;    
# Line 144 | Line 147 | namespace OpenMD {
147      dispmax = 2.0 * sqrt (3.0 * dispmax * dispmax);
148  
149  
150 <    if (dispmax > skinThickness_) {
148 <      cerr << "build because movement\n";
150 >    if (dispmax > skinThickness_)
151        return (dispmax > skinThickness_);  
152 <    }
152 >
153      return false;
154    }
155   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines