On Thu, 1 Nov 2012, Kirk, Benjamin (JSC-EG311) wrote:

> Roy - I'd like to have a default constructor for the MessageTag so I
> can create a vector of them.  I have a use case where I need a
> number of tags, and this is the easiest way to store them so I can
> then loop through the tags and receive from any source but in a
> predictable order on the content.

Definitely sounds reasonable.

> I was thinking a static MessageTag::invalid_tag =
> std::numeric_limits<int>::min() or something like that,

Something we can libmesh_assert() against?  Yeah, that sounds good.

I'd prefer for the default constructor to give something valid, but we
can't get a unique valid tag without a Communicator argument...

> but wasn't sure where to initialize it with this being header-only
> now.

I cheated and put Communicator_World (and now CommWorld) in libmesh.C,
but there's no reason other than my laziness not to just create a
parallel.C for those.
---
Roy

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to