Skip to content

Commit

Permalink
Merge pull request #1027 from plumed/fix-1025
Browse files Browse the repository at this point in the history
Removed second build of active atom list to address issue #1025
  • Loading branch information
GiovanniBussi authored Feb 16, 2024
2 parents eb7c7b7 + 724aea2 commit 5fcdaaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/DomainDecomposition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,8 @@ void DomainDecomposition::reset() {
if( !unique_serial && int(gatindex.size())==getNumberOfAtoms() && shuffledAtoms==0 ) return;
// This is an optimisation to ensure that we don't call std::fill over the whole forces
// array if there are a small number of atoms passed between the MD code and PLUMED
getAllActiveAtoms( unique ); for(const auto & ip : inputs) (ip->copyOutput(0))->clearInputForce( unique );
if( dd && shuffledAtoms>0 ) getAllActiveAtoms( unique );
for(const auto & ip : inputs) (ip->copyOutput(0))->clearInputForce( unique );
}

void DomainDecomposition::writeBinary(std::ostream&o) {
Expand Down

1 comment on commit 5fcdaaa

@PlumedBot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found broken examples in automatic/ANN.tmp
Found broken examples in automatic/EDS.tmp
Found broken examples in automatic/EMMI.tmp
Found broken examples in automatic/ENVIRONMENTSIMILARITY.tmp
Found broken examples in automatic/FOURIER_TRANSFORM.tmp
Found broken examples in automatic/FUNCPATHGENERAL.tmp
Found broken examples in automatic/FUNCPATHMSD.tmp
Found broken examples in automatic/FUNNEL.tmp
Found broken examples in automatic/FUNNEL_PS.tmp
Found broken examples in automatic/GHBFIX.tmp
Found broken examples in automatic/INCLUDE.tmp
Found broken examples in automatic/MAZE_OPTIMIZER_BIAS.tmp
Found broken examples in automatic/MAZE_RANDOM_ACCELERATION_MD.tmp
Found broken examples in automatic/MAZE_SIMULATED_ANNEALING.tmp
Found broken examples in automatic/MAZE_STEERED_MD.tmp
Found broken examples in automatic/PIV.tmp
Found broken examples in automatic/PLUMED.tmp
Found broken examples in automatic/PYCVINTERFACE.tmp
Found broken examples in automatic/PYTHONFUNCTION.tmp
Found broken examples in MiscelaneousPP.md

Please sign in to comment.