Re: [Libmesh-users] Renumbering mesh elements

2016-08-09 Thread Shayan Hoshyari
Thank you for your answer. Your strategy worked perfectly. I ended up using the following block of code to renumber the mesh. // The mapping is stored in the vector new_to_old, where // new_to_old[elem_old_id] = elem_new_id. // Also _mesh.prepare_for_use is already called once because // it was n

Re: [Libmesh-users] Renumbering mesh elements

2016-08-06 Thread Roy Stogner
On Fri, 5 Aug 2016, Shayan Hoshyari wrote: > Is there any functionality in libMesh for renumbering the elements in a > SerialMesh? Given that I already know the mapping old_id -> new_id ? The renumber_elem() API is probably what you're looking for. You may need to use a "placeholder" number, th

[Libmesh-users] Renumbering mesh elements

2016-08-05 Thread Shayan Hoshyari
Dear developers and users, Is there any functionality in libMesh for renumbering the elements in a SerialMesh? Given that I already know the mapping old_id -> new_id ? ​I am using libMesh to convert a .msh file format to our in house solver format and I wish to apply an rcm renumbering - which I