<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi,<br><br>Gromacs uses a more complicated, but also more efficient way to<br>determine the virial.<br>If you write your own program, I would the much simpler direct way<br>of just calculating r x f in all the force loops.<br>Gromacs 4.0 still always uses shift vectors, but in parallel the graph is not used.<br><br>Berk<br><br>&gt; Date: Fri, 28 Nov 2008 15:32:55 +0800<br>&gt; From: xuji@home.ipe.ac.cn<br>&gt; To: gmx-users@gromacs.org<br>&gt; Subject: [gmx-users] How to calculate virial in gromacs-4.0?<br>&gt; <br>&gt; Hi all<br>&gt; <br>&gt; I want to do pressure coupling in my own program.<br>&gt; So These days I read associated codes in Gromacs_4.0 and I find that it<br>&gt; must sum the virial first. In Gromacs-3.3.3 you use the intramolecular shift(graph)<br>&gt; to sum the virial of the covalent bonds, but in Gromacs-4.0 the graph variable seems to be NULL<br>&gt; when run the mdrun with domain decomposition. Is it the true? <br>&gt; And if it's true how do you sum the
  virial with the periodic boundary condition <br>&gt; in Gromacs_4.0 with domain decomposition? Can someone explain the way of summing <br>&gt; virial in Gromacs_4.0 in detail? Or can you recommend some resoures about summing the virial with <br>&gt; the periodic boundary condition? <br>&gt;         <br>&gt; Appreciate any help in advance!<br>&gt; <br>&gt; Best<br>&gt;         wishes!<br>&gt;                                  <br>&gt; <br>&gt;         xuji<br>&gt;         xuji@home.ipe.ac.cn<br>&gt;           2008-11-28<br><br /><hr />Express yourself instantly with MSN Messenger! <a href='http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/' target='_new'>MSN Messenger</a></body>
</html>