Re: [Libmesh-users] assign new subdomain_id

2013-04-07 Thread Ataollah Mesgarnejad
Thanks Derek, that makes perfect sense. Ata On Apr 7, 2013, at 4:00 PM, Derek Gaston wrote: > If you're just going to do it once... just do it in the same way on all the > processors. > > In general, this is "the way" with libMesh... do a little redundant > computation to keep from doing com

Re: [Libmesh-users] assign new subdomain_id

2013-04-07 Thread Derek Gaston
If you're just going to do it once... just do it in the same way on all the processors. In general, this is "the way" with libMesh... do a little redundant computation to keep from doing communication. Anything you're going to do a limited number of times is a good candidate for this. Derek On

Re: [Libmesh-users] assign new subdomain_id

2013-04-07 Thread Ataollah Mesgarnejad
Roy, Since I only need to this once in the beginning of my program can't I do it on the head node and then broadcast the mesh using: MeshCommunication::broadcast ? Thanks, Ata On Apr 7, 2013, at 12:01 AM, Roy Stogner wrote: > > On Sat, 6 Apr 2013, Ataollah Mesgarnejad wrote: > >> One more q

Re: [Libmesh-users] assign new subdomain_id

2013-04-06 Thread Roy Stogner
On Sat, 6 Apr 2013, Ataollah Mesgarnejad wrote: > One more question: do I need to broadcast this or will it be set for > all the copies of the mesh? You'll need to communicate it yourself. Parallel::sync_dofobject_data_by_id() might be useful for doing so. --- Roy --

Re: [Libmesh-users] assign new subdomain_id

2013-04-06 Thread Ataollah Mesgarnejad
Thanks Cody, One more question: do I need to broadcast this or will it be set for all the copies of the mesh? Ata On Apr 6, 2013, at 11:06 PM, Cody Permann wrote: > Yep > > http://libmesh.sourceforge.net/doxygen/classlibMesh_1_1Elem.php#a59f6d76e35d6d77450d3fecaa5e8f092 > > Sent from my iPh

Re: [Libmesh-users] assign new subdomain_id

2013-04-06 Thread Cody Permann
Yep http://libmesh.sourceforge.net/doxygen/classlibMesh_1_1Elem.php#a59f6d76e35d6d77450d3fecaa5e8f092 Sent from my iPhone On Apr 6, 2013, at 10:00 PM, Ataollah Mesgarnejad wrote: Dear all, Is there a way to assign a new subdomain_id to an element? Thanks, Ata ---

[Libmesh-users] assign new subdomain_id

2013-04-06 Thread Ataollah Mesgarnejad
Dear all, Is there a way to assign a new subdomain_id to an element? Thanks, Ata -- Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most tale