On Fri, Jun 19, 2015 at 12:45 PM, Sterling Harper <smhar...@mit.edu> wrote:
> Hello libmesh-devel,
>
> I would like the ability to restrict the output of some systems when I
> call EquationSystems::write. I am imagining an interface where I call a
> method like
>
> system.set_write_hidden(.true.);
>
> or
>
> system.set_writeable(.false.);
>
>
> Then, in EquationSystems::write I would modify the for and while pos loops
> to include
>
> if (pos->second->_write_hidden)
>
> continue;
>
>
> Does this sound like a reasonable addition?
>
Definitely, but we probably won't use Fortran boolean parameters :)
I guess I'd prefer an interface that returns a reference-to-bool which can
be used as setter or getter.
bool & hide_output() { return _hide_output; }
There is some precedent for this type of shared getter/setter approach
elsewhere in libmesh as well, but we aren't super consistent about it.
--
John
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel