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