DUMPATOMS STRIDE=5000000 FILE=out.xyz ATOMS=1-5000
will fix the problem where the maximum atom index needed is < 5000
Although there is a way around the problem, it would be great if we could get this fixed. Information on my debugging efforts are below.
Best,
Glen
--
I have attached a demonstration of this problem, where I have taken the inputs for the NAMD tutorial simulation of ubiquitin in a water sphere, and call a broken and "working" plumed file, which computes the COM of the alpha carbon and nitrogen for residues 1 and 3 as the first group, and 2 and 4 as the second group, and then computes the distance between these.
Both simulations run 0 time steps, to demonstrate that the problem occurs even before dynamics
To run:
The following commands will produce xyz files showing the correct and incorrect COM positions, and a correct and incorrect distance calculation
namd2 ubq_ws_eq_plumed-broken.conf
namd2 ubq_ws_eq_plumed-works.conf
I have also included an independent check, a NAMD tcl script which computes the COMs and distances, and agrees with the "working" plumed calculation
To run:
vmd -e measure_cv.tcl -dispdev none
Please let me know if you have any problems here
--
More about debugging. I have done some manual debugging via printing out various variables during the example simulations above. The problem seems to be related to the plumed-patch share() function in NAMD_2.9_Source/src/ComputeMgr.C.
In the example simulations that I have attached, this function is called 2x. The first time, it calls createFullList and then fills the masses array correctly. Some of my print outs are here
in plumed createFullList - 0
in plumed createFullList - 4
in plumed createFullList - 19
in plumed createFullList - 21
in plumed createFullList - 36
in plumed createFullList - 38
in plumed createFullList - 55
in plumed createFullList - 57
full list created - n: 8
get full list run: 0 - n: 8
in redo - n: 8
0:14.007000 4:12.011000 19:14.007000 21:12.011000 36:14.007000 38:12.011000 55:14.007000 57:12.011000
Before share() is called again, I see the first computation of the COMs, and already the masses accessed by COM are not correct
TCL: Running for 0 steps
Computing COM - natoms: 4
mass 0: 14.007000
mass 1: 1.008000
mass 2: 12.011000
mass 3: 1.008000
Computing COM - natoms: 4
mass 0: 1.008000
mass 1: 1.008000
mass 2: 12.011000
mass 3: 1.008000
Finally, when share() is called again I see
full list created - n: 0
get full list run: 8 - n: 0
// PRINT OUT full masses array
i 0 mass 14.007000
i 1 mass 1.008000
i 2 mass 1.008000
i 3 mass 1.008000
i 4 mass 12.011000
i 5 mass 1.008000
i 6 mass 12.011000
i 7 mass 1.008000
in redo - n: 0
///
However, in the case where I use the DUMPATOMS command to access atoms 1-100
At this final step, the masses array has 100 elements with masses of atoms 1-100. Presumably this is related to why the COM command is able to access the correct masses for the 8 selected atoms in the groups
--
You received this message because you are subscribed to the Google Groups "PLUMED users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plumed-users...@googlegroups.com.
To post to this group, send email to plumed...@googlegroups.com.
Visit this group at http://groups.google.com/group/plumed-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/plumed-users/07f2a653-af03-42f6-905a-04c66da0679e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "PLUMED users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/plumed-users/rsBD9JoOtN4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to plumed-users...@googlegroups.com.
To post to this group, send email to plumed...@googlegroups.com.
Visit this group at http://groups.google.com/group/plumed-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/plumed-users/CAPLm8ZKs627NAELBXkApPy1nDKu7ghBEX0xK5n94gKn87B6jfw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plumed-users/CAGMfakkqrabPBEBj-B0Gett-nk6J8OQtuaaO3eHEi4eN0TZ68w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plumed-users/CAPLm8Z%2BN7tO5iT%3D82UiRNN5%3Dj88mwpTHSM9OcEXaMUyT8maXAQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plumed-users/CAGMfakkr2VTiy%2BL0Tjq7qS-Lmtzhww7m4r1A76fLHVtt2ZFYOw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plumed-users/CAPLm8ZLA0bvJOX4g8y2X5GEDBbiUUwE1hVYVySZqvk7P_kKT9Q%40mail.gmail.com.