plumed / plumed2

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

Contributing new size-and-shape module #1069

Closed hockyg closed 1 month ago

hockyg commented 1 month ago
Description

This pull request adds a module called "Size and Shape" based on our work operating directly on atomic positions which involves translation and rotating positions on the fly before computing CV values. This is work from papers with @mmccull @mccullaghlab and @SasmalSubarna

Target release

I would like my code to appear in release 2.9

Type of contribution
Copyright
Tests
GiovanniBussi commented 1 month ago

Thanks @hockyg ! This is going to end up in plumed 2.10 (due this summer). A few comments, in addition to the astyle error that was reported by GitHub Actions:

Thanks again for this contribution!

SasmalSubarna commented 1 month ago

@GiovanniBussi

Hi! I have put another test for MPI, just like you mentioned last time. But I think it failed some tests, did I make some mistakes? Would you please take a look?

Thank you.

GiovanniBussi commented 1 month ago

Thanks @SasmalSubarna !

As fas as I can tell, the problem is that you save too many digits in derivatives, and the result is not reproducible across different machines for numerical reasons.

Usually it is sufficient to reduce the number of digits with the FMT keyword, something like

DUMPDERIVATIVES ARG=ld1 STRIDE=1 FILE=deriv FMT=%8.4f

and reset the regtest

GiovanniBussi commented 1 month ago

In addition, the codecheck job tells me that you didn't apply astyle formatting:

[sizeshape/mahadist.cpp:0] (error) :plmd_astyle: astyle not satisfied
[sizeshape/pos_proj.cpp:0] (error) :plmd_astyle: astyle not satisfied

It should be sufficient to run make astyle from plumed2/src/sizeshape, and then git commit

hockyg commented 1 month ago

Thanks Carlo and Giovanni!

On Mon, May 13, 2024 at 7:07 AM Carlo Camilloni @.***> wrote:

Merged #1069 https://github.com/plumed/plumed2/pull/1069 into master.

— Reply to this email directly, view it on GitHub https://github.com/plumed/plumed2/pull/1069#event-12785491249, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIONFH7HZ7HSLJGB34QDBDZCCNH3AVCNFSM6AAAAABHJKVBRWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSG44DKNBZGEZDIOI . You are receiving this because you were mentioned.Message ID: @.***>