Roy Stogner <[email protected]> wrote on 09/30/2010 11:29:39 AM:

> 
> On Thu, 30 Sep 2010, David Andrs wrote:
> 
> > Attached is the patch that does it for boundary_id() and
> > boundary_ids(). If you could check that I understood you
> > correctly...
> 
> Exactly, thanks.
> 
> > I also tried that with my little test code that I sent earlier and
> > it seems to work (I tried 1 and 2 levels of refinements)
> 
> Okay; I'll test it on my own codes, but it should be safe to commit.
> 
> > What are the other 2 functions that need this fix?
> 
> My mistake - only one other function needs it,
> BoundaryInfo::side_with_boundary_id()

I looked at this function, but I cannot use the same approach as for 
boundary_id(). This one is using _boundary_side_id mapping of elem -> 
(side, bnd_id). However, when I refine the mesh, there are no additional 
entries for newly created elements like for nodal ones in _boudary_node_id 
(unless I'm supposed to call something in order to get it, but I doubt 
that, since add_side has an assert for elem->level() == 0). With these new 
entries, side_with_boundary_id() should work with one little modification. 
Thus, the fix would have to change adding and removing sides, where I 
could use the above-mentioned approach.

Or is there another way how to achieve this?

--
David Andrs

> ---
> Roy
> 
> 
------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Libmesh-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libmesh-users
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to