Re: [Libmesh-users] Iterating over all the elements in parallel

2015-11-06 Thread Roy Stogner
On Fri, 6 Nov 2015, Miguel Angel Salazar de Troya wrote: >> I found out I can use elem->id () == mesh.processor_id() instead of >> elem->is_remote(). This is what the _local_ iterators (that John recommended, IIRC) do for you. >> However, there's a problem when I iterate over all the >> element

Re: [Libmesh-users] Iterating over all the elements in parallel

2015-11-06 Thread Miguel Angel Salazar de Troya
I pressed reply instead of reply all... On Nov 6, 2015 10:50 AM, "Miguel Angel Salazar de Troya" < [email protected]> wrote: > I found out I can use elem->id () == mesh.processor_id() instead of > elem->is_remote(). However, there's a problem when I iterate over all the > elements and it's

Re: [Libmesh-users] Iterating over all the elements in parallel

2015-11-06 Thread Paul T. Bauman
On Fri, Nov 6, 2015 at 10:29 AM, Miguel Angel Salazar de Troya < [email protected]> wrote: > Hello > > I'm trying to do the following operation. I want to iterate over all the > elements using the iterators active_elements_begin()/end(). You can use the active_local_elements_begin()/end()

[Libmesh-users] Iterating over all the elements in parallel

2015-11-06 Thread Miguel Angel Salazar de Troya
Hello I'm trying to do the following operation. I want to iterate over all the elements using the iterators active_elements_begin()/end(). Then I'm using Elem::is_remote () to check if the element is local to the processor and modify a global vector from a system that has one dof per element. Afte