[Libmesh-devel] Unique Identifier for DofObjects

2013-07-10 Thread Derek Gaston
I think I mentioned this before, but at that point I found a workaround. But now I'm stuck again... So - let's say I have a datastructure that is indexed by element id. If I'm using parallel mesh and adaptivity when the mesh is repartitioned elements can be sent from one processor to another, ri

Re: [Libmesh-devel] Unique Identifier for DofObjects

2013-07-10 Thread Roy Stogner
On Wed, 10 Jul 2013, Derek Gaston wrote: I am thinking that we need a globally unique identifier for all dof objects.  This would be a serially increasing number that would be attached to the dof object.  When a dof object gets sent over the wire and its "id" is changed... the unique identifier

Re: [Libmesh-devel] Unique Identifier for DofObjects

2013-07-10 Thread Derek Gaston
The new object will have a new ID. No attempt made a resurrecting old ids. New object means new ID... Derek Sent from my iPad On Jul 10, 2013, at 4:49 PM, Roy Stogner wrote: > > On Wed, 10 Jul 2013, Derek Gaston wrote: > >> I am thinking that we need a globally unique identifier for all dof

Re: [Libmesh-devel] Unique Identifier for DofObjects

2013-07-10 Thread Roy Stogner
On Wed, 10 Jul 2013, Derek Gaston wrote: > The new object will have a new ID. No attempt made a resurrecting old > ids. New object means new ID... That'll get real sparse real fast, then. You're planning to use this as the index to map or unordered_map? --- Roy --

Re: [Libmesh-devel] Unique Identifier for DofObjects

2013-07-10 Thread Derek Gaston
Sent from my iPad On Jul 10, 2013, at 9:50 PM, Roy Stogner wrote: > That'll get real sparse real fast, then. You're planning to use this > as the index to map or unordered_map? Yep, super sparse... So some some sort of hash map (probably unordered_map) of unique_id->object (but could be unique

Re: [Libmesh-devel] Unique Identifier for DofObjects

2013-07-10 Thread Derek Gaston
Wait - I see what you're asking... how are we going to use this to index our data? Well, we already use "id" to index into rather large maps (yes, regular std::map) to get at this data and we haven't seen that showing up in our timing so I'm not super worried about it. If the sparsity of it c

Re: [Libmesh-devel] Unique Identifier for DofObjects

2013-07-10 Thread Roy Stogner
On Wed, 10 Jul 2013, Derek Gaston wrote: > Wait - I see what you're asking... In that case you're one step ahead of me. ;-) I'm mostly just trying to see if I understand your problem and your proposal. But I am also trying to see if there are less intrusive ways to manage the same effect. I

Re: [Libmesh-devel] Unique Identifier for DofObjects

2013-07-10 Thread Derek Gaston
Sent from my iPad On Jul 10, 2013, at 11:05 PM, Roy Stogner wrote: > Or does this need to work in the moving mesh case too? Yep, moving mesh... and in fact I need it to give the exact same numbering to two meshes, where one is simply a distortion of the other one (element IDs currently do this

Re: [Libmesh-devel] Unique Identifier for DofObjects

2013-07-10 Thread Roy Stogner
On Wed, 10 Jul 2013, Derek Gaston wrote: > On Jul 10, 2013, at 11:05 PM, Roy Stogner wrote: > >> I'd rather avoid adding a mandatory extra 8 bytes to every DofObject, >> but I don't see any insuperable obstacle to adding an optional 8 >> bytes; this could even be run-time optional since we alrea