Convergence value in the *.dist.conv file generated at every step
14 views
Skip to first unread message
Pragati Sharma
unread,
Feb 10, 2021, 7:35:24 AM2/10/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vo...@googlegroups.com
Hi all,
I am doing coarse graining of a graphite molecule using IBI. After a few steps, the potentials are smooth and the target and CG distributions matched well ( as can be seen from the attached image).
The convergence limit given in the setting file is 0.003.
However for this distribution, the convergence value I am getting in GR.bond.dist.conv file which is generated every step is 4.11 (attached). However when I checked the individual values on the target as well as dist.new file (both attached), the difference for any of the values does not go till 4.11. All individual values differ max. by 2.
Then how is this convergence value in GR.dist.conv calculated. Is it not the difference in the values of target and new file. Is it the sum of all differences or is calculated some other way.
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vo...@googlegroups.com
see here:
https://github.com/votca/csg/blob/master/share/scripts/inverse/postadd_convergence.sh#L99 It is basically the sum of the absolute values of the differences in
the distributions.
You can check the result:
$ sed -i '/^#/d' GR.bond.dist.{tgt,new}
that remove all comments from the two distribution files, then you do:
$ paste GR.bond.dist.{tgt,new} | awk '{sum+=sqrt(($2-$5)**2)}END{print sum}'
which prints 4.11204, so that is the same as above.
The is no max norm implemented, but it wouldn't be hard to add.