plumed / plumed2

Development version of plumed 2
https://www.plumed.org
GNU Lesser General Public License v3.0
364 stars 289 forks source link

Handler class does not have a `watch` field #1122

Closed Luthaf closed 1 month ago

Luthaf commented 1 month ago
Description

Remove extraneous field assignment. This breaks the build for me when trying to compile the master branch using https://github.com/plumed/conda/.

Since this was not caught in the 6 months since this code was introduced, maybe it is not used anywhere in the code base? I'm not sure why this is failing now.

Type of contribution
Copyright
Tests
GiovanniBussi commented 1 month ago

Yes I think it's not used. Actually I think it should be:

handler.section=nullptr;

Can you confirm that this would compile correctly? Thanks!

Luthaf commented 1 month ago

Yes, this builds correctly with section!