Skip to content

This change fixes a bug that occurs if you use KDE with CONTACT_MAP as the input variables. - #1441

Open
gtribello wants to merge 3 commits into
masterfrom
fix-kde-bug
Open

This change fixes a bug that occurs if you use KDE with CONTACT_MAP as the input variables.#1441
gtribello wants to merge 3 commits into
masterfrom
fix-kde-bug

Conversation

@gtribello

Copy link
Copy Markdown
Member
Description

In essence, if the number of kernels you are adding to your histogram can change between frames then this causes problems in versions of PLUMED that do not have this fix. Making this change resolves the problem.

Target release

I would like my code to appear in release 2.11

Type of contribution
  • changes to code or doc authored by PLUMED developers, or additions of code in the core or within the default modules
  • changes to a module not authored by you
  • new module contribution or edit of a module authored by you
Copyright
  • I agree to transfer the copyright of the code I have written to the PLUMED developers or to the author of the code I am modifying.
  • the module I added or modified contains a COPYRIGHT file with the correct license information. Code should be released under an open source license. I also used the command cd src && ./header.sh mymodulename in order to make sure the headers of the module are correct.
Tests
  • I added a new regtest or modified an existing regtest to validate my changes.
  • I verified that all regtests are passed successfully on GitHub Actions.

…bers of kernels in different frames.

This bug can occur if you construct a histogram from the vectors connecting atoms that are within the first
coordination sphere of each other. The number of atoms in the first coordination spheres may change between two
frames. Prior to this fix this would have resulted in a segmentation fault.

I have added a regression test to ensure that this bug is not introduced again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant