Thanks for pointing this out. I figured it out later last night. (It would be nice this info is in the README of the test_double or somewhere more suitable.) <br><br clear="all">Best regards,<br>Lie-Quan<br>
<br><br><div class="gmail_quote">On Sat, Dec 5, 2009 at 10:09 AM, Kui Gao <span dir="ltr"><<a href="mailto:kgao@eecs.northwestern.edu">kgao@eecs.northwestern.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="blue" lang="ZH-CN">
<div>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">Hi Lie-Quan,</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">
Please run “mpiexec -n 4 test_write <a href="http://test_double.nc" target="_blank">test_double.nc</a>”. The test
assumes that the number is 4 in test/data/test_write.c.</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">
The ncdump of the resulting data file is as follows.</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">netcdf test_double {</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">// file format: CDF-1</span></font></p><div class="im">
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">dimensions:</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">
x = 100 ;</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">
y = 100 ;</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">
z = 100 ;</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">
time = UNLIMITED ; // (100 currently)</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">variables:</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">
double square(x, y) ;</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">
square:description = "2-D integer array" ;</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">
double cube(x, y, z) ;</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">
double time(time) ;</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">
double xytime(time, x, y) ;</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">// global attributes:</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">
:title = "example netCDF dataset" ;</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">data:</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US"> square =</span></font></p>
</div><p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US"> 0, 1, 2, 3, 4, 5,
6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US"> 21, 22,
23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38,</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US"> 39, 40,
41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56,</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US"> 57, 58,
59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US"> 75, 76,
77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92,</span></font></p>
<p class="MsoNormal" style="text-indent: 9pt;"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">93, 94, 95, 96, 97, 98, 99,</span></font></p>
<p class="MsoNormal" style="text-indent: 9pt;"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">…..</span></font></p>
<p class="MsoNormal" style="text-indent: 9pt;"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">}</span></font></p>
<p class="MsoNormal" style="text-indent: 9pt;"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">
Thanks,</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US">Kui.</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial; color: navy;" lang="EN-US"> </span></font></p>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US">
<hr align="center" width="100%" size="2">
</span></font></div>
<p class="MsoNormal"><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;" lang="EN-US">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;" lang="EN-US">
[mailto:<a href="mailto:parallel-netcdf-bounces@lists.mcs.anl.gov" target="_blank">parallel-netcdf-bounces@lists.mcs.anl.gov</a>] <b><span style="font-weight: bold;">On Behalf Of </span></b>Lie-Quan Lee<br>
<b><span style="font-weight: bold;">Sent:</span></b> Saturday, December 05, 2009
2:14 AM<br>
<b><span style="font-weight: bold;">To:</span></b> <a href="mailto:parallel-netcdf@mcs.anl.gov" target="_blank">parallel-netcdf@mcs.anl.gov</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: bugy 1.1.0</span></font><span lang="EN-US"></span></p>
</div><div><div></div><div class="h5">
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US"> </span></font></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US">Oops, I guess that
I may not understand how to run test_double. <br>
<br>
Anyhow, the redef problem is true. Attached is the testing program to show the
probelm. Please help. Thanks.<br>
<br clear="all">
Best regards,<br>
Lie-Quan</span></font></p>
<div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US">On Fri, Dec 4, 2009 at 10:30 PM, Lie-Quan Lee <<a href="mailto:liequan@gmail.com" target="_blank">liequan@gmail.com</a>> wrote:</span></font></p>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US">Dear Parallel-netcdf Developers,<br>
<br>
I really would like to use version 1.1.0 for its CDF-5 format in our
simulation. However, there are some issues (unrelated to CDF-5) in the release
1.1.0. For example, the test_write program under test/test_double failed to
generated the right data file (as in test/data/<a href="http://test_double.nc" target="_blank">test_double.nc</a>). Here is the ncdump of the resuting data
file:<br>
<br>
netcdf t {<br>
dimensions:<br>
x = 100 ;<br>
y = 100 ;<br>
z = 100 ;<br>
time = UNLIMITED ; // (100 currently)<br>
variables:<br>
double square(x, y) ;<br>
square:description = "2-D integer
array" ;<br>
double cube(x, y, z) ;<br>
double time(time) ;<br>
double xytime(time, x, y) ;<br>
<br>
// global attributes:<br>
:title = "example netCDF
dataset" ;<br>
data:<br>
<br>
square =<br>
0, nan, 2, nan, 4, nan, 6, nan, 8, nan, 10, nan, 12, nan, 14, nan, 16,
nan, <br>
18, nan, 20, nan, 22, nan, 24, nan, 26, nan, 28, nan, 30,
nan, 32, nan, <br>
34, nan, 36, nan, 38, nan, 40, nan, 42, nan, 44, nan, 46,
nan, 48, nan, <br>
50, nan, 52, nan, 54, nan, 56, nan, 58, nan, 60, nan, 62,
nan, 64, nan, <br>
66, nan, 68, nan, 70, nan, 72, nan, 74, nan, 76, nan, 78,
nan, 80, nan, <br>
82, nan, 84, nan, 86, nan, 88, nan, 90, nan, 92, nan, 94,
nan, 96, nan, <br>
98, nan,<br>
nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,
nan, <br>
nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,
nan, nan, <br>
nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,
nan, nan, <br>
nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,
nan, nan, <br>
nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,
nan, nan, <br>
nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,
nan, nan, <br>
nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,
nan, nan, nan,<br>
200, nan, 202, nan, 204, nan, 206, nan, 208, nan, 210, nan, 212, nan,
214, <br>
<br>
,,,<br>
<br>
The testing environment is:<br>
OS: Linux x64 (RHEL4)<br>
Compiler: gcc 4.2.2<br>
MPI: mpich2 1.0.7<br>
<br>
Also, in my application, open an existing netcdf and add a new variable (2-d)
messed up the existing data somehow. The same code works when
parallel-netcdf release 1.0.3 or early is used.<br>
<font color="#888888"><span style="color: rgb(136, 136, 136);"><br>
--<br clear="all">
Best regards,<br>
<br>
Lie-Quan Lee<br>
SLAC National Accelerator Laboratory</span></font></span></font></p>
</div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US"> </span></font></p>
</div></div></div>
</div>
</blockquote></div><br>