Use --keep-cout, not --keep-out. David
On Thu, Aug 18, 2016 at 1:25 PM, Jayaraman, Vegnesh <vjayr...@illinois.edu> 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 that were not used! > WARNING! could be spelling mistake, etc! > Option left: name:--keep-cout value: True > > > Is there a mistake in the way i set the run time option? > > Thanks and Regards > Vegnesh > > ________________________________ > From: Cody Permann [codyperm...@gmail.com] > Sent: Thursday, August 18, 2016 11:35 AM > To: Jayaraman, Vegnesh; libmesh-users@lists.sourceforge.net > Subject: Re: [Libmesh-users] Memory used by a System Object. > > It's a runtime option. > On Thu, Aug 18, 2016 at 10:31 AM Jayaraman, Vegnesh <vjayr...@illinois.edu > <mailto:vjayr...@illinois.edu>> 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...@gmail.com<mailto:codyperm...@gmail.com>] > Sent: Thursday, August 18, 2016 9:36 AM > To: Jayaraman, Vegnesh; libmesh-users@lists.sourceforge.net<mailto:libmesh > -us...@lists.sourceforge.net> > Subject: Re: [Libmesh-users] Memory used by a System Object. > > 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 <vjayr...@illinois.edu > <mailto:vjayr...@illinois.edu>> wrote: > I checked by printing a statement in the constructor. And I guess, the > answer is there one copy of the ARRAY variable for the entire system. > > I am planning to declare another equation systems object (with a different > mesh) within the foo system and hence I asked the question as I didnt want > the declaration to be repeated for every element. > > Thank you. > > Regards > Vegnesh > ________________________________ > From: Jayaraman, Vegnesh > Sent: Wednesday, August 17, 2016 11:31 PM > To: libmesh-users@lists.sourceforge.net<mailto:libmesh > -us...@lists.sourceforge.net> > Subject: Memory used by a System Object. > > Hi > > I have a basic question on the memory used : > > I am creating a custom system class like : > > class foo : public System > { > foo(EquationSystems& es, > const std::string& name_in, > const unsigned int number_in): > :System(es, name_in, number_in),mesh(2),eq(mesh){} > > int VARIABLE; > char ARRAY[100]; > > }; > > Now when I do the following: > > Mesh mesh(2); > mesh.read("A_very_large_mesh.msh"); > EquationSystems es(mesh); > > es.add_system<foo>("Test"); > es.init(); > > > Now, is there one copy of ARRAY or variable for all the elements or if > there are N elements or K nodes , there are N/K copies of ARRAY? > > Thank you, > Vegnesh > ------------------------------------------------------------ > ------------------ > _______________________________________________ > Libmesh-users mailing list > Libmesh-users@lists.sourceforge.net<mailto:Libmesh > -us...@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/libmesh-users<h > ttps://urldefense.proofpoint.com/v2/url?u=https-3A__lists. > sourceforge.net_lists_listinfo_libmesh-2Dusers&d=CwMFaQ&c=8hUWFZcy2Z- > Za5rBPlktOQ&r=zPe16F3t4ATZWQ6J7DYOyIpTy5qL-TyGcPdDk2TVxhE&m= > vytX583n1BAjxMN3ZN8VsxE4EZ9G2vZWyecsAH3L_iA&s= > 11JlyrxdXrJQqbPr8SBhXs16v8ipzG3oTBbD26X-Org&e=> > ------------------------------------------------------------ > ------------------ > _______________________________________________ > Libmesh-users mailing list > Libmesh-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/libmesh-users > ------------------------------------------------------------------------------ _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users