| 477 |
|
return; |
| 478 |
|
} |
| 479 |
|
|
| 480 |
< |
void InteractionManager::doReciprocalSpaceSum(){ |
| 480 |
> |
void InteractionManager::doReciprocalSpaceSum(potVec &pot){ |
| 481 |
|
if (!initialized_) initialize(); |
| 482 |
< |
electrostatic_->ReciprocalSpaceSum(); |
| 482 |
> |
electrostatic_->ReciprocalSpaceSum(pot); |
| 483 |
|
} |
| 484 |
|
|
| 485 |
|
RealType InteractionManager::getSuggestedCutoffRadius(int *atid) { |
| 490 |
|
set<NonBondedInteraction*>::iterator it; |
| 491 |
|
RealType cutoff = 0.0; |
| 492 |
|
|
| 493 |
< |
for (it = interactions_[*atid][*atid].begin(); it != interactions_[*atid][*atid].end(); |
| 493 |
> |
for (it = interactions_[*atid][*atid].begin(); |
| 494 |
> |
it != interactions_[*atid][*atid].end(); |
| 495 |
|
++it) |
| 496 |
|
cutoff = max(cutoff, (*it)->getSuggestedCutoffRadius(make_pair(atype, atype))); |
| 497 |
|
return cutoff; |
| 505 |
|
set<NonBondedInteraction*>::iterator it; |
| 506 |
|
RealType cutoff = 0.0; |
| 507 |
|
|
| 508 |
< |
for (it = interactions_[atid][atid].begin(); it != interactions_[atid][atid].end(); ++it) |
| 508 |
> |
for (it = interactions_[atid][atid].begin(); |
| 509 |
> |
it != interactions_[atid][atid].end(); ++it) |
| 510 |
|
cutoff = max(cutoff, (*it)->getSuggestedCutoffRadius(make_pair(atype, atype))); |
| 511 |
|
return cutoff; |
| 512 |
|
} |