<div dir="ltr"><div><div><div><div>Hi Barry,<br><br></div><div>I fixed all the PetscPrintf's to have the (double) cast.<br></div>I am wondering if this could this be an uninitialized variable issue?<br></div><br>In that code, I have the following declaration<br></div><pre><span class=""> const</span> <span class="">PetscScalar</span> <span class="">test_values</span><span class="">[]</span> <span class="">=</span> <span class="">{</span> <span class="">0.311256</span><span class="">,</span> <span class="">88.068</span><span class="">,</span> <span class="">11.077444</span><span class="">,</span> <span class="">9953.62</span><span class="">,</span> <span class="">7.345</span><span class="">,</span> <span class="">64.8943</span><span class="">,</span> <span class="">3.1458</span><span class="">,</span> <span class="">6699.95</span><span class="">,</span> <span class="">0.00084</span><span class="">,</span> <span class="">0.0647</span> <span class="">};</span></pre></div><div>which is then used to build a Vec object.<br></div><div>I am not explicitly setting the imaginary part of the vector to zero when test_values is declared.<br></div><div><div><br></div><div>Apologize for the crappy code - I really never ever use complex numbers in petsc.<br><br></div><div>If this is in fact the issue, please note that the same time of declaration appears at the top of<span style="font-weight:normal"><font><br> petsc /
src /
dm /
examples /
tutorials /
<span class="">ex15.c</span><br></font></span><br></div><div><br>Cheers<br></div><div> Dave<br></div><div><br><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 2 March 2015 at 20:31, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<a href="http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/03/01/examples_master_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log" target="_blank">http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/03/01/examples_master_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log</a><br>
<br>
******* Testing: testexamples_C *******<br>
4,7c4,7<br>
< min(a) = +8.40e-04 [loc 8]<br>
< max(a) = +9.95e+03 [loc 3]<br>
< min(b) = +8.40e-04 [loc 8]<br>
< max(b) = +9.95e+03 [loc 3]<br>
---<br>
> min(a) = -4.21e+207 [loc 6]<br>
> max(a) = +8.10e-320 [loc 5]<br>
> min(b) = -4.21e+207 [loc 6]<br>
> max(b) = +8.10e-320 [loc 5]<br>
/export/home/petsc/petsc.clone-3/src/vec/vec/examples/tests<br>
Possible problem with with ex46, diffs above<br>
=========================================<br>
4,7c4,7<br>
< min(a) = +8.40e-04 [loc 8]<br>
< max(a) = +9.95e+03 [loc 3]<br>
< min(b) = +8.40e-04 [loc 8]<br>
< max(b) = +9.95e+03 [loc 3]<br>
---<br>
> min(a) = -4.21e+207 [loc 6]<br>
> max(a) = +8.10e-320 [loc 5]<br>
> min(b) = -4.21e+207 [loc 6]<br>
> max(b) = +8.10e-320 [loc 5]<br>
/export/home/petsc/petsc.clone-3/src/vec/vec/examples/tests<br>
Possible problem with with ex46_2, diffs above<br>
=========================================<br>
4,7c4,7<br>
< min(a) = +8.40e-04 [loc 8]<br>
< max(a) = +9.95e+03 [loc 3]<br>
< min(b) = +8.40e-04 [loc 8]<br>
< max(b) = +9.95e+03 [loc 3]<br>
---<br>
> min(a) = -4.21e+207 [loc 6]<br>
> max(a) = +8.10e-320 [loc 5]<br>
> min(b) = -4.21e+207 [loc 6]<br>
> max(b) = +8.10e-320 [loc 5]<br>
/export/home/petsc/petsc.clone-3/src/vec/vec/examples/tests<br>
Possible problem with with ex46_3, diffs above<br>
=========================================<br>
6,9c6,9<br>
< min(a) = +8.40e-04 [loc 8]<br>
< max(a) = +9.95e+03 [loc 3]<br>
< min(b) = +8.40e-04 [loc 8]<br>
< max(b) = +9.95e+03 [loc 3]<br>
---<br>
> min(a) = -4.21e+207 [loc 6]<br>
> max(a) = +8.10e-320 [loc 5]<br>
> min(b) = -4.21e+207 [loc 6]<br>
> max(b) = +8.10e-320 [loc 5]<br>
/export/home/petsc/petsc.clone-3/src/vec/vec/examples/tests<br>
Possible problem with with ex46_mpiio, diffs above<br>
=========================================<br>
<br>
</blockquote></div><br></div>