<div dir="ltr">I've modified my source code accordingly using PETSc 3.8.0. It seems no more useful info got printed out.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 29, 2017 at 8:15 PM, Hao Zhang <span dir="ltr"><<a href="mailto:hbcbh1999@gmail.com" target="_blank">hbcbh1999@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm using -fp_trap as I run the simulation. the output only gives <div><br></div><div>floating point exception</div><div><br></div><div>It doesn't matter coarse grid or medium grid or more refined grid. the program crashed right away.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 29, 2017 at 12:19 AM, 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>
Please upgrade to the latest 3.8 version of PETSc. and then run with -fp_trap<br>
<br>
This message is usually an indication that a NaN or Inf got into the numerical computation. Using the latest PETSc will make it much easier to track down.<br>
<span class="m_874439492931912036HOEnZb"><font color="#888888"><br>
Barry<br>
</font></span><div class="m_874439492931912036HOEnZb"><div class="m_874439492931912036h5"><br>
> On Sep 28, 2017, at 8:57 PM, Hao Zhang <<a href="mailto:hbcbh1999@gmail.com" target="_blank">hbcbh1999@gmail.com</a>> wrote:<br>
><br>
> I'm experiencing error when doing mesh refinement(mesh x2 for X, Y and Z direction) for 3D poisson problem.<br>
> PETSc produces no errors when no mesh refinement. I've pasted some debugging info here. Please advise.<br>
><br>
><br>
> [0]PETSC ERROR: --------------------- Error Message ------------------------------<wbr>------------------------------<wbr>--<br>
> [0]PETSC ERROR: Invalid argument<br>
> [0]PETSC ERROR: Scalar value must be same on all processes, argument # 3<br>
> [0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/d<wbr>ocumentation/faq.html</a> for trouble shooting.<br>
> [0]PETSC ERROR: Petsc Release Version 3.5.4, May, 23, 2015<br>
> [0]PETSC ERROR: /home/haozhang/FT.NO.FULL/iFlu<wbr>id/iFluid on a arch-linux2-c-debug named vn18 by haozhang Thu Sep 28 23:47:39 2017<br>
> [0]PETSC ERROR: Configure options --with-mpi-dir=/cm/shared/apps<wbr>/openmpi/gcc/64/1.8.5/ --download-fblaslapack=/home/h<wbr>aozhang/tmp/fblaslapack-3.4.2.<wbr>tar.gz --download-hypre=/home/haozhan<wbr>g/tmp/hypre-2.9.1a.tar.gz --with-valgrind-include=/home/<wbr>haozhang/include/valgrind/<br>
> [0]PETSC ERROR: #1 VecAXPBYPCZ() line 731 in /home/haozhang/tmp/petsc-3.5.4<wbr>_HYPRE/src/vec/vec/interface/r<wbr>vector.c<br>
> [0]PETSC ERROR: #2 KSPSolve_BCGS() line 87 in /home/haozhang/tmp/petsc-3.5.4<wbr>_HYPRE/src/ksp/ksp/impls/bcgs/<wbr>bcgs.c<br>
> [0]PETSC ERROR: #3 KSPSolve() line 460 in /home/haozhang/tmp/petsc-3.5.4<wbr>_HYPRE/src/ksp/ksp/interface/i<wbr>tfunc.c<br>
> [vn18:99838] *** Process received signal ***<br>
> [vn18:99838] Signal: Aborted (6)<br>
> [vn18:99838] Signal code: (-6)<br>
> [vn18:99848] *** Process received signal ***<br>
> [vn18:99849] *** Process received signal ***<br>
> [vn18:99849] Signal: Aborted (6)<br>
> [vn18:99849] Signal code: (-6)<br>
> [vn18:99848] Signal: Aborted (6)<br>
> [vn18:99848] Signal code: (-6)<br>
> [vn18:99838] [ 0] /lib64/libpthread.so.0(+0xf790<wbr>)[0x2aaaadbb4790]<br>
> [vn18:99838] [ 1] [vn18:99848] [ 0] /lib64/libpthread.so.0(+0xf790<wbr>)[0x2aaaadbb4790]<br>
> [vn18:99848] [ 1] /lib64/libc.so.6(gsignal+0x35)<wbr>[0x2aaaaddf5625]<br>
> [vn18:99838] [ 2] /lib64/libc.so.6(abort+0x175)[<wbr>0x2aaaaddf6e05]<br>
> [vn18:99838] [ 3] [vn18:99849] [ 0] /lib64/libpthread.so.0(+0xf790<wbr>)[0x2aaaadbb4790]<br>
> [vn18:99849] [ 1] [vn15:122106] *** Process received signal ***<br>
> [vn15:122106] Signal: Aborted (6)<br>
> [vn15:122106] Signal code: (-6)<br>
> /lib64/libc.so.6(gsignal+0x35)<wbr>[0x2aaaaddf5625]<br>
> [vn18:99848] [ 2] /lib64/libc.so.6(abort+0x175)[<wbr>0x2aaaaddf6e05]<br>
> [vn18:99848] [ 3] /home/haozhang/tmp/petsc-3.5.4<wbr>_HYPRE/arch-linux2-c-debug/lib<wbr>/libpetsc.so.3.5(PetscTraceBac<wbr>kErrorHandler+0x503)[<wbr>0x2aaaaae1d7e1]<br>
> [vn18:99838] [ 4] /lib64/libc.so.6(gsignal+0x35)<wbr>[0x2aaaaddf5625]<br>
> [vn18:99849] [ 2] /lib64/libc.so.6(abort+0x175)[<wbr>0x2aaaaddf6e05]<br>
> [vn18:99849] [ 3] [vn15:122107] *** Process received signal ***<br>
> [vn15:122107] Signal: Aborted (6)<br>
> [vn15:122107] Signal code: (-6)<br>
> [vn16:86295] *** Process received signal ***<br>
> [vn16:86295] Signal: Aborted (6)<br>
> [vn16:86295] Signal code: (-6)<br>
> [vn18:99824] *** Process received signal ***<br>
> [vn18:99824] Signal: Aborted (6)<br>
> [vn18:99824] Signal code: (-6)<br>
> [vn18:99844] *** Process received signal ***<br>
> [vn18:99844] Signal: Aborted (6)<br>
> [vn18:99844] Signal code: (-6)<br>
> /home/haozhang/tmp/petsc-3.5.4<wbr>_HYPRE/arch-linux2-c-debug/lib<wbr>/libpetsc.so.3.5(PetscError+<wbr>0x338)[0x2aaaaae183b3]<br>
><br>
><br>
><br>
> --<br>
> Hao Zhang<br>
> Dept. of Applid Mathematics and Statistics,<br>
> Stony Brook University,<br>
> Stony Brook, New York, 11790<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_874439492931912036gmail_signature" data-smartmail="gmail_signature">Hao Zhang<br>Dept. of Applid Mathematics and Statistics,<br>Stony Brook University, <br>Stony Brook, New York, 11790</div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Hao Zhang<br>Dept. of Applid Mathematics and Statistics,<br>Stony Brook University, <br>Stony Brook, New York, 11790</div>
</div>