A continuing problem: While I was running ./ex5, the output is normal. When I 
was running ./ex5 -help | grep whatever, the output is still normal. However, 
when I tried ./ex5 -help | head -20, it output the first 20 lines from help, 
then it output the some error message. I'm curious why there is such an error 
message. The error message is pasted below.  

[0]PETSC ERROR: 
------------------------------------------------------------------------
[0]PETSC ERROR: Caught signal number 13 Broken Pipe: Likely while reading or 
writing to a socket
[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger
[0]PETSC ERROR: or see 
http://www.mcs.anl.gov/petsc/petsc-as/documentation/troubleshooting.html#Signal[0]PETSC
 ERROR: or try http://valgrind.org on GNU/linux and Apple Mac OS X to find 
memory corruption errors
[0]PETSC ERROR: configure using --with-debugging=yes, recompile, link, and run 
[0]PETSC ERROR: to get more information on the crash.
[0]PETSC ERROR: --------------------- Error Message 
------------------------------------
[0]PETSC ERROR: Signal received!
[0]PETSC ERROR: 
------------------------------------------------------------------------
[0]PETSC ERROR: Petsc Release Version 3.1.0, Patch 8, Thu Mar 17 13:37:48 CDT 
2011
[0]PETSC ERROR: See docs/changes/index.html for recent updates.
[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
[0]PETSC ERROR: See docs/index.html for manual pages.
[0]PETSC ERROR: 
------------------------------------------------------------------------
[0]PETSC ERROR: ./ex5 on a darwin-op named blablabla by blablabla Thu May 29 
08:57:47 2014
[0]PETSC ERROR: Libraries linked from /usr/local/petsc-3.1-p8/darwin-opt/lib
[0]PETSC ERROR: Configure run at Tue Mar 11 16:25:14 2014
[0]PETSC ERROR: Configure options --CC=/usr/local/openmpi-1.4.3/bin/mpicc 
--CXX=/usr/local/openmpi-1.4.3/bin/mpicxx 
--FC=/usr/local/openmpi-1.4.3/bin/mpif90 
--LDFLAGS="-L/usr/local/openmpi-1.4.3/lib 
-Wl,-rpath,/usr/local/openmpi-1.4.3/lib" --PETSC_ARCH=darwin-opt 
--with-debugging=0 --with-hypre=1 --with-blas-lapack-lib --with-c++-support 
--download-hypre --download-f-blas-lapack --COPTFLAGS=-O3 --CXXOPTFLAGS=-O3 
--FOPTFLAGS=-O3
[0]PETSC ERROR: 
------------------------------------------------------------------------
[0]PETSC ERROR: User provided function() line 0 in unknown directory unknown 
file
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD 
with errorcode 59.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.



________________________________________
From: Sun, Hui
Sent: Wednesday, May 28, 2014 1:16 PM
To: Barry Smith
Cc: Matthew Knepley; [email protected]
Subject: RE: [petsc-users] Question about dm_view

Thanks, now I get it working.   -Hui

________________________________________
From: Barry Smith [[email protected]]
Sent: Wednesday, May 28, 2014 1:12 PM
To: Sun, Hui
Cc: Matthew Knepley; [email protected]
Subject: Re: [petsc-users] Question about dm_view

On May 28, 2014, at 2:13 PM, Sun, Hui <[email protected]> wrote:

> Do I have to turn it on thru ./configure and then make everything again?

  No, just run the program with the option. For example if there is printed 
-dm_view_draw <false> then run the program with -dm_view_draw true

Barry

>
> From: Matthew Knepley [[email protected]]
> Sent: Wednesday, May 28, 2014 12:10 PM
> To: Sun, Hui
> Cc: Barry Smith; [email protected]
> Subject: Re: [petsc-users] Question about dm_view
>
> On Wed, May 28, 2014 at 1:28 PM, Sun, Hui <[email protected]> wrote:
> Thanks Barry for quick reply. After I type ./ex5 -help | grep view, it comes 
> out a list of options related to _view, all of which have the tag <FALSE>, 
> what does this mean?
>
> The <FALSE> is the current value. They are all false because you have not 
> turned them on. IF you are using the release version,
> the viewing option is -da_view. The -dm_view is the new version which we are 
> about to release.
>
>   Thanks,
>
>     Matt
>
> ________________________________________
> From: Barry Smith [[email protected]]
> Sent: Wednesday, May 28, 2014 11:25 AM
> To: Sun, Hui
> Cc: [email protected]
> Subject: Re: [petsc-users] Question about dm_view
>
>   Run as./ex5 -help | grep view to see the possibilities.  It depends on 
> PETSc version number. When using the graphics want you generally want a 
> -draw_pause -1 to stop that program at the graphic otherwise it pops up and 
> disappears immediately.
>
>    Barry
>
>
> On May 28, 2014, at 1:21 PM, Sun, Hui <[email protected]> wrote:
>
> > Hello, I'm new to PETSc. I'm reading a tutorial slide given in Imperial 
> > College from this site: Slides. In slide page 28, there is description of 
> > viewing the DA. I'm testing from my MAC the same commands listed on that 
> > page, for example, ex5 -dm_view, nothing interesting happen except the 
> > Number of Newton iterations is outputted. I'm expecting that the PETSc 
> > numbering would show up as a graphic window or something. Can anyone tell 
> > me what's missing here? Thank you!   ( Hui )
>
>
>
>
> --
> What most experimenters take for granted before they begin their experiments 
> is infinitely more interesting than any results to which their experiments 
> lead.
> -- Norbert Wiener

Reply via email to