On Tue, 10 Feb 2009, Kirk, Benjamin (JSC-EG) wrote:

> I'll dump some quick thoughts and then follow up some more later....
>
>> From my perspective, the current DofObjects are too heavy.  This
>> especially  true in the common case of lagrange elements, as the
>> dof indexing is never used for elements.  So I am hesitant to add
>> anything...
>
> At the same time, there is no way the library can pack arbitrary
> data for communication without user help...
>
>
> What I was thinking as an alternative is - gasp - templates.
> Specifically, temnplating on the DofObjectType used for both Elem an
> Nodes.  The UnstruturedMesh is then a typedef for
> UnstructuredMeshImpl<DofObject,DofObject> or something.
>
> But the benefit is that the user is free to implement derived
> DofObject types which store whatever, implement additiona
> packing/unpacking as required, then use
> UnstructuredMeshImpl<FatDofObject, SkinnyDofObject> or whatever...
>
> Thoughts?

Seems like a lot of complication to save what, a couple dozen bytes
per element?  Don't forget we're also going to end up needing to
recompile Elem<SkinnyDofObject>, Node<FatDofObject>,
Pyramid5<SkinnyDofObject> ...  At that point, if you're using
templates, are there going to be any .C files left in the library?

We could make Elem derive from ElemDofObject and Node derive from
NodeDofObject, and typedef those to the current implementation.  That
wouldn't require quite such sweeping changes, although it would still
require a configure/recompile for any user who wanted to create
something like a "first order lagrange only" version of libMesh.
---
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

Reply via email to