Re: [Libmesh-users] Example files won't run a second time

2016-08-18 Thread John Peterson
On Thu, Aug 18, 2016 at 10:49 AM, Harry Pearce wrote: > Including "libmesh/node.h" got rid of the error when using make > example-opt for my modified example. I was wondering what I do to view the > output of the C program though. I would think I should run example-opt. > When I did this I got th

Re: [Libmesh-users] Memory used by a System Object.

2016-08-18 Thread Jayaraman, Vegnesh
Thank you. The constructor of the foo object prints the cout staement within it only once. Regards Vegnesh From: Derek Gaston [fried...@gmail.com] Sent: Thursday, August 18, 2016 12:32 PM To: Jayaraman, Vegnesh; David Knezevic Cc: libmesh-users@lists.sourceforge.ne

Re: [Libmesh-users] Memory used by a System Object.

2016-08-18 Thread Derek Gaston
That warning is from PETSc and can be ignored (PETSc doesn't understand that you're passing libMesh command-line options). --keep-cout is the correct one. Derek On Thu, Aug 18, 2016 at 1:29 PM Jayaraman, Vegnesh wrote: > Sorry. > > I did a typo while writing the previous mail > > I did > ./exa

Re: [Libmesh-users] Memory used by a System Object.

2016-08-18 Thread David Knezevic
I believe that warning is from PETSc. PETSc is telling you that it doesn't recognize --keep-cout. That's fine, since it's not for PETSc, it's for libMesh, so just ignore the warning. The real test is to run with 2 (or more) MPI processes and check that --keep-cout gives you output for each process

Re: [Libmesh-users] Memory used by a System Object.

2016-08-18 Thread Jayaraman, Vegnesh
Sorry. I did a typo while writing the previous mail I did ./example-opt --keep-cout and its variants? If I do just "./example-opt --keep-out" i still get WARNING! There are options you set that were not used! WARNING! could be spelling mistake, etc! Option left: name:--keep-out (no value)

Re: [Libmesh-users] Memory used by a System Object.

2016-08-18 Thread David Knezevic
Use --keep-cout, not --keep-out. David On Thu, Aug 18, 2016 at 1:25 PM, Jayaraman, Vegnesh wrote: > I tried ./example-opt --keep-out > and > ./example-opt --keep-out 1 > ./example-opt --keep-out True > ./example-opt "--keep-out" > > I get the following : > > WARNING! There are options you set

Re: [Libmesh-users] Memory used by a System Object.

2016-08-18 Thread Jayaraman, Vegnesh
I tried ./example-opt --keep-out and ./example-opt --keep-out 1 ./example-opt --keep-out True ./example-opt "--keep-out" I get the following : WARNING! There are options you set that were not used! WARNING! could be spelling mistake, etc! Option left: name:--keep-cout value: True Is there a mis

Re: [Libmesh-users] Example files won't run a second time

2016-08-18 Thread Harry Pearce
Including "libmesh/node.h" got rid of the error when using make example-opt for my modified example. I was wondering what I do to view the output of the C program though. I would think I should run example-opt. When I did this I got the output: Usage: /opt/libmesh-1.0.0-rc1/examples/eigenproblems/

Re: [Libmesh-users] Memory used by a System Object.

2016-08-18 Thread John Peterson
On Thu, Aug 18, 2016 at 10:31 AM, Jayaraman, Vegnesh wrote: > The --keep-cout option must be set as a compilation flag for libmesh or as > a compilation flag for my program. ? > It's a command line argument (runtime) to your program. -- John

Re: [Libmesh-users] Memory used by a System Object.

2016-08-18 Thread Cody Permann
It's a runtime option. On Thu, Aug 18, 2016 at 10:31 AM Jayaraman, Vegnesh wrote: > The --keep-cout option must be set as a compilation flag for libmesh or as > a compilation flag for my program. ? > > Thanks and Regards > Vegnesh > -- > *From:* Cody Permann [codyperm.

Re: [Libmesh-users] Memory used by a System Object.

2016-08-18 Thread Jayaraman, Vegnesh
The --keep-cout option must be set as a compilation flag for libmesh or as a compilation flag for my program. ? Thanks and Regards Vegnesh From: Cody Permann [codyperm...@gmail.com] Sent: Thursday, August 18, 2016 9:36 AM To: Jayaraman, Vegnesh; libmesh-users@list

Re: [Libmesh-users] Memory used by a System Object.

2016-08-18 Thread Cody Permann
Be careful about that conclusion. libMesh suppresses stdout from all ranks except the master. If you want to see how many times something is printing (not the best way to debug) add "--keep-cout" on the command line. Cody On Wed, Aug 17, 2016 at 11:13 PM Jayaraman, Vegnesh wrote: > I checked by

Re: [Libmesh-users] Get the hessian on a mesh point

2016-08-18 Thread John Peterson
On Thu, Aug 18, 2016 at 2:58 AM, wrote: > > Dear developers, > > I want to get the hessian on a mesh point. > I find that there is a function point_hessian in fem_context.C. > How can I get a FEMContext object? I don't have "context" in my code. > FEMContext &c = libmesh_cast_ref(context); > You

[Libmesh-users] Get the hessian on a mesh point

2016-08-18 Thread li . luo
Dear developers, I want to get the hessian on a mesh point. I find that there is a function point_hessian in fem_context.C. How can I get a FEMContext object? I don't have "context" in my code. FEMContext &c = libmesh_cast_ref(context); Another question: Is the output file (for example, tecplo