Skipping the setup of the request list if the NL if stride is 1#1371
Skipping the setup of the request list if the NL if stride is 1#1371Iximiel wants to merge 1 commit intoplumed:masterfrom
Conversation
e0bc063 to
3f8364e
Compare
|
I do not know how the error in the derivatives of Those new 9 lines are suspicious because 9 is the size of the virial. There are 73 atoms processed by cgauss, so I should expect 219 values for the derivatives plus 9 for the virial, 228 in total (218,227 because we start from 0). I have no idea because why these pops ups for some steps after my modifications, nor if the problem was there before. I ran grep for the 0th derivative and for the 227th derivatives, to check if the 227 derivative appears for all the steps or not. Click on this text for the results.I am trying to understand what is the problem, but I can use some suggestions @GiovanniBussi |
|
It might be that 3 atoms ( 3*3=9 for a coincidence) should drop from the list due to NL calculations? But the stride is 2, so that should appear in 2 consecutive steps and not on the 3rd, the 6th and on the 8th, shouldn't it be something like "2nd, 3rd then 6th,7th"? |
This change speeds up the use of NL as a linked cells algorithm with stride set to 1 It changes the prepare step to aknowledge the change I also compacted the prepare step in a method to propagate changes
3f8364e to
3664739
Compare
|
@GiovanniBussi: I slept on it: i should use the Colvar call for requestatoms list instead of the actionatomistic one. I added the NL as a friend of Colvar, is that ok? |
|
Maybe it's cleaner to make the method public? |
|
I do not know: RequestAtoms is also an ActionAtomistic non virtual public method, with nearly the same signature, (it has an extra the default boolean parameter). I tried, for testing, to rename RequestAtoms in Colvar, without touching the code elsewhere. It compiles successfully, but of course plumed explodes in the tests. |
Description
This change speeds up the use of NL as a linked cells algorithm with stride set to 1
It changes the prepare step to acknowledge the change
Since I saw that the prepare step with the NL is in a few places, I also compacted that step in a method in the NL to propagate this, and any future changes.
I touched some non core module: maze and s2cm
Here's the effect of this code on a simple call on COORDINATION:
Target release
I would like my code to appear in release v2.11
Type of contribution
Copyright
COPYRIGHTfile with the correct license information. Code should be released under an open source license. I also used the commandcd src && ./header.sh mymodulenamein order to make sure the headers of the module are correct.Tests