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. The output will look like a
bit of a mess if it's working, since the output from the processes
interfere with each other. IIRC you can also use --redirect-stdout and that
will send each process's output to a separate file, which is usually more
convenient.

David


On Thu, Aug 18, 2016 at 1:29 PM, Jayaraman, Vegnesh <vjayr...@illinois.edu>
wrote:

> 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)
>
> ------------------------------
> *From:* David Knezevic [david.kneze...@akselos.com]
> *Sent:* Thursday, August 18, 2016 12:26 PM
> *To:* Jayaraman, Vegnesh
> *Cc:* Cody Permann; libmesh-users@lists.sourceforge.net
> *Subject:* Re: [Libmesh-users] Memory used by a System Object.
>
> 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-users@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-users@
>> 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-users@
>> lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/libmesh-users
>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_libmesh-2Dusers&d=CwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=zPe16F3t4ATZWQ6J7DYOyIpTy5qL-TyGcPdDk2TVxhE&m=fzv2TArRJ8-VeGLnRUIM1qTgjXYFHcfgz891GsnPemE&s=3VlzhccuEOjoQtZupox1U31hzEDa9ptYVq1WA18tXDQ&e=>
>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.so
>> urceforge.net_lists_listinfo_libmesh-2Dusers&d=CwMFaQ&c=
>> 8hUWFZcy2Z-Za5rBPlktOQ&r=zPe16F3t4ATZWQ6J7DYOyIpTy5qL-TyGcPd
>> Dk2TVxhE&m=vytX583n1BAjxMN3ZN8VsxE4EZ9G2vZWyecsAH3L_iA&s=11J
>> lyrxdXrJQqbPr8SBhXs16v8ipzG3oTBbD26X-Org&e=>
>> ------------------------------------------------------------
>> ------------------
>> _______________________________________________
>> Libmesh-users mailing list
>> Libmesh-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/libmesh-users
>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_libmesh-2Dusers&d=CwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=zPe16F3t4ATZWQ6J7DYOyIpTy5qL-TyGcPdDk2TVxhE&m=fzv2TArRJ8-VeGLnRUIM1qTgjXYFHcfgz891GsnPemE&s=3VlzhccuEOjoQtZupox1U31hzEDa9ptYVq1WA18tXDQ&e=>
>>
>
>
------------------------------------------------------------------------------
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to