On Sun, Jan 11, 2009 at 7:52 PM, Roy Stogner <firstname.lastname@example.org> wrote:
On Sun, 11 Jan 2009, Kirk, Benjamin (JSC-EG) wrote:
I guess I'd go with a set<unsigned char> (or set<subdomain_t> when we
ever get around to that), but with the special understanding in the
code that an empty set means "put this variable everywhere". I can't
think of an efficient way to make that more intuitive but not too much
This gets my vote. I can't see why you would ever want to call add_variable() and have that variable applied _nowhere_... so I think it's ok to infer that an empty set means everywhere.
Ben, if you add this capability.... it will be a godsend for us. We're just getting ready to need this in our own codes... (specifically for fluid structure interaction problems).