But what should be the outer for loop?
I am currently doing this
iterate over local nodes
iterate over vars on node
get dof_id of var and set value in system.solution
Are you suggesting that I do the following on each processor
iterate over ALL nodes
iterate over vars on node
get dof_id of var
if (dof_id lies between first and last local index)
and set value in system.solution
Or should I change my outer loop from nodes to dof ids (in which case I will
have to figure out the node index based on the dof id index).
Thanks,
Manav
On Mar 12, 2013, at 1:19 PM, John Peterson <[email protected]> wrote:
>
>
>
> On Tue, Mar 12, 2013 at 11:13 AM, Manav Bhatia <[email protected]> wrote:
> Hi John,
>
> Question:
>
> Should I be iterating over the pid_nodes or the active_nodes if my
> intention is to set the values of dof on each node for output.
>
> Neither. You should be checking to see if a given dof lies between the
> first_local_dof and last_local_dof on a processor before trying to set it
> directly.
>
>
> --
> John
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users