Hi<br><br>thanks for your reply. I tried patching as you described it, but I got the error message:<br><br>patch: **** `&gt;&#39; expected at line 18 of patch<br><br>Franzi<br><br>---<br>Franziska Hoffgaard<br>PhD Student<br>
Bioinformatics &amp; Theo. Biology Group<br>TU Darmstadt<br><br><div class="gmail_quote">2009/5/26 Berk Hess <span dir="ltr">&lt;<a href="mailto:gmx3@hotmail.com">gmx3@hotmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>
Hi,<br><br>I just saw that 4.0 uses a new mtx format which can also efficiently store sparse matrices.<br>Please try if my modified gmxdump for 4.0.5 works?<br>Store the data below in a file called fix and then do:<br>patch gmxdump.c fix<br>
<br>Berk<br><br>61a62,63                                             <br>&gt; #include &quot;sparsematrix.h&quot;                          <br>&gt; #include &quot;mtxio.h&quot;                                 <br>364a367,402                                          <br>
&gt; static void list_mtx(char *fn)                     <br>&gt; {                                                  <br>&gt;   int  nrow,ncol,i,j,k;                            <br>&gt;   real *full=NULL,value;                           <br>
&gt;   gmx_sparsematrix_t * sparse=NULL;                <br>&gt;                                                    <br>&gt;   gmx_mtxio_read(fn,&amp;nrow,&amp;ncol,&amp;full,&amp;sparse);    <br>&gt;                                                    <br>
&gt;   if (full == NULL) {<br>&gt;     snew(full,nrow*ncol);<br>&gt;     for(i=0;i&lt;nrow*ncol;i++) {<br>&gt;       full[i] = 0;<br>&gt;     }<br>&gt;<br>&gt;     for(i=0;i&lt;sparse-&gt;nrow;i++) {<br>&gt;       for(j=0;j&lt;sparse-&gt;ndata[i];j++) {<br>
&gt;         k     = sparse-&gt;data[i][j].col;<br>&gt;         value = sparse-&gt;data[i][j].value;<br>&gt;         full[i*ncol+k] = value;<br>&gt;         full[k*ncol+i] = value;<br>&gt;       }<br>&gt;     }<br>&gt;     gmx_sparsematrix_destroy(sparse);<br>
&gt;   }<br>&gt;<br>&gt;   printf(&quot;%d %d\n&quot;,nrow,ncol);<br>&gt;   for(i=0; i&lt;nrow; i++) {<br>&gt;     for(j=0; j&lt;ncol; j++) {<br>&gt;       printf(&quot; %g&quot;,full[i*ncol+j]);<br>&gt;     }<br>&gt;     printf(&quot;\n&quot;);<br>
&gt;   }<br>&gt;<br>&gt;   sfree(full);<br>&gt; }<br>&gt;<br>381a420<br>&gt;     { efMTX, &quot;-mtx&quot;, &quot;hessian&quot;, ffOPTRD },<br>409a449,450<br>&gt;   else if (ftp2bSet(efMTX,NFILE,fnm))<br>&gt;     list_mtx(ftp2fn(efMTX,NFILE,fnm));<div class="im">
<br><br><br><hr>Express yourself instantly with MSN Messenger! <a href="http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/" target="_blank">MSN Messenger</a></div></div>
<br>_______________________________________________<br>
gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
<a href="http://www.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://www.gromacs.org/mailman/listinfo/gmx-users</a><br>
Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before posting!<br>
Please don&#39;t post (un)subscribe requests to the list. Use the<br>
www interface or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>
Can&#39;t post? Read <a href="http://www.gromacs.org/mailing_lists/users.php" target="_blank">http://www.gromacs.org/mailing_lists/users.php</a><br></blockquote></div><br>