|
From: Derek G. <fri...@gm...> - 2012-06-13 14:45:50
|
I guess... instead of asking how to do that I should say what I really want to do: zero a variable. So if I have 3 variables in a system (u,v,w) I just want to zero 'v' and not the other two. I was thinking of doing this by snagging all of the dof_indices for v and then calling set() and passing those in along with 0. Is there a better way? Derek On Wed, Jun 13, 2012 at 8:39 AM, Derek Gaston <fri...@gm...> wrote: > Dmitry - did you ever figure this out? I need to do the same thing... > anyone know of a shortcut? > > Derek > > > On Fri, Mar 2, 2012 at 9:25 AM, Dmitry Karpeev <ka...@mc...>wrote: > >> Dear All, >> What's the fastest way to build a list of ALL local dof indices >> corresponding to a given system variable? >> I figured one way is to loop over the local elements, call >> dof_map.dof_indices(elem, elemlist, varid), combine elemlists and >> eliminate >> the duplicates. >> Is there a better way? >> >> Thanks. >> Dmitry. >> >> ------------------------------------------------------------------------------ >> Virtualization & Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> _______________________________________________ >> Libmesh-users mailing list >> Lib...@li... >> https://lists.sourceforge.net/lists/listinfo/libmesh-users >> > > |