<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 10.5pt; font-family: ????; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>The functions in this file are like this:</div><div><br></div><div><span style="background-color: rgba(0, 0, 0, 0);">//TODO: test with threads and more than 1 MPI ranks<br>TEST_F(FFFTest3D, Real5_6_9)<br>{<br>    int        ndata[] = {5, 6, 9};<br>    MPI_Comm   comm[]  = {MPI_COMM_NULL, MPI_COMM_NULL};<br>    real     * rdata;<br>    t_complex* cdata;<br>    ivec       local_ndata, offset, rsize, csize, complex_order;<br><br>    gmx_parallel_3dfft_init(&amp;fft_, ndata, &amp;rdata, &amp;cdata,<br>                            comm, TRUE, 1);<br><br>    gmx_parallel_3dfft_real_limits(fft_, local_ndata, offset, rsize);<br>    gmx_parallel_3dfft_complex_limits(fft_, complex_order,<br>                                      local_ndata, offset, csize);<br>    checker_.checkVector(rsize, "rsize");<br>    checker_.checkVector(csize, "csize");<br>    int size = csize[0]*csize[1]*csize[2];<br><br>    memcpy(rdata, inputdata, size*sizeof(t_complex));<br>    gmx_parallel_3dfft_execute(fft_, GMX_FFT_REAL_TO_COMPLEX, 0, NULL);<br>    //TODO use std::complex and add checkComplex for it<br>    checker_.checkSequenceArray(size*2,<br>                                reinterpret_cast&lt;real*&gt;(cdata), "forward");<br><br>    memcpy(cdata, inputdata, size*sizeof(t_complex));<br>    gmx_parallel_3dfft_execute(fft_, GMX_FFT_COMPLEX_TO_REAL, 0, NULL);<br>    for (int i = 0; i &lt; ndata[0]*ndata[1]; i++) //check sequence but skip unused data<br>    {<br>        checker_.checkSequenceArray(ndata[2], rdata+i*rsize[2],<br>                                    gmx::formatString("backward %d", i).c_str());<br>    }<br>}</span></div>
<div><br></div><hr style="WIDTH: 210px; HEIGHT: 1px" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>xiexiaobin@sjtu.edu.cn</div></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div>&nbsp;</div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b>&nbsp;<a href="mailto:spoel@xray.bmc.uu.se">David van der Spoel</a></div><div><b>Date:</b>&nbsp;2014-08-21&nbsp;15:53</div><div><b>To:</b>&nbsp;<a href="mailto:gmx-developers@gromacs.org">gmx-developers</a></div><div><b>Subject:</b>&nbsp;Re: [gmx-developers] question for gromacs-5.0 source code</div></div></div><div><div>On 2014-08-21 09:35, xiexiaobin@sjtu.edu.cn wrote:</div>
<div>&gt; Hi,</div>
<div>&gt;</div>
<div>&gt; I saw a source file fft.cpp that contains some test functions under the</div>
<div>&gt; path gromacs-5.0\src\gromacs\fft\tests.What is it used for?Dose any</div>
<div>&gt; functions in other files will use this file's functions?</div>
<div>&nbsp;</div>
<div>What does it look like? Testing. So the answer is probably no.</div>
<div>&nbsp;</div>
<div>&gt;</div>
<div>&gt; BR,</div>
<div>&gt; Steve</div>
<div>&gt;</div>
<div>&gt; ------------------------------------------------------------------------</div>
<div>&gt; xiexiaobin@sjtu.edu.cn &lt;mailto:xiexiaobin@sjtu.edu.cn&gt;</div>
<div>&gt;</div>
<div>&gt;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>-- </div>
<div>David van der Spoel, Ph.D., Professor of Biology</div>
<div>Dept. of Cell &amp; Molec. Biol., Uppsala University.</div>
<div>Box 596, 75124 Uppsala, Sweden. Phone:        +46184714205.</div>
<div>spoel@xray.bmc.uu.se&nbsp;&nbsp;&nbsp; http://folding.bmc.uu.se</div>
<div>-- </div>
<div>Gromacs Developers mailing list</div>
<div>&nbsp;</div>
<div>* Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List before posting!</div>
<div>&nbsp;</div>
<div>* Can't post? Read http://www.gromacs.org/Support/Mailing_Lists</div>
<div>&nbsp;</div>
<div>* For (un)subscribe requests visit</div>
<div>https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers or send a mail to gmx-developers-request@gromacs.org.</div>
</div></blockquote>
</body></html>