<html><head><style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}

p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head><body><div data-externalstyle="false" dir="ltr" style="font-family:Calibri,'Segoe UI',Meiryo,'Microsoft YaHei UI','Microsoft JhengHei UI','Malgun Gothic','Khmer UI','Nirmala UI',Tunga,'Lao UI',Ebrima,sans-serif;font-size:12pt;"><div>&nbsp;</div><div data-signatureblock="true">&nbsp;<div>Hi</div><div>&nbsp;</div><div>I&nbsp;am tyring&nbsp;to compute total virial, i.e. sum_i sum_j (rij*Fij). To achieve this, I am making modifications in the gmx_nb_generic_kernel() function in nb_generic.c. In it, I see that atoms I and j are accessed from neighbor lists to determine forces on atom I . My question is that in this loop do I have to take care of double counting pair forces, i.e. will the pair of atom I and j be accessed twice or just once?</div><div>&nbsp;</div><div>Thanks</div><div>Sikandar</div></div></div></body></html>