Hi all,

Attached is the patch for changing the subdomain id to a typedef'd
unsigned int from unsigned char. It fits my needs well and have not
had problems dealing with 1000's of materials now. The typedef is
defined on top of Elem.h.

Do have a look at the patch and if everything looks good (conventions
and definition placement), do commit this.

One more question though. It occurred to me that while doing this, in
parallel, if you partition according to subdomain_id's it will lead to
bad partitioning in my case. This is because I could sometimes have
'almost' random distribution of materials and since I am now
maintaining material number with subdomain_id, I worry whether this
will come back to bite me later. Do you see this to be a problem ?

Vijay

PS: My original libmesh sources have quite a few changes that do not
exist in libmesh code repository and I had to weed out changes that
you will not be interested here. So if anything seems out of place,
feel free to remove it.

On Tue, Feb 10, 2009 at 3:19 PM, Roy Stogner <[email protected]> wrote:
>
> On Tue, 10 Feb 2009, Kirk, Benjamin (JSC-EG) wrote:
>
>>> Once you've got a BlockDofObject working correctly, why would you want
>>> to add a templated option to use the less efficient old DofObject?
>>> Just call the new one DofObject and you're done.
>>
>> Well, I can still see the use for an EmptyDofObject...
>
> Yeah, you'll sometimes get a little extra savings there.  I still
> don't think it's worth an invasive new template layer, although I
> at least won't kick and scream if you want to implement NodeDofObject
> and ElemDofObject typedefs.
>
>> The problem I see with only a blocked DofObject is how to still do mixed
>> element simulations properly, e.g. Taylor-Hood and friends.
>
> The catch is that you'd need to save more global mapping data (e.g.
> variable N is of fe_type M, the first index of variable N is J).  This
> means that we'd have to break the DofObject API by adding const
> DofMap& arguments to n_vars(), n_dofs(), n_comp(), dof_number(), etc.
> ---
> Roy
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> Libmesh-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libmesh-devel
>

Attachment: subdomain_id_type patch.patch
Description: Binary data

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Libmesh-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to