← Back to team overview

dolfin team mailing list archive

Re: _cell in Function

 

I can't think of a better solution. (One option would be to overload
operator() with a version that takes Cell as an additional argument
and let a user decide which one to implement, with or without the
extra Cell argument.)

/Anders

On Wed, Aug 10, 2005 at 01:43:32PM +0200, Johan Jansson wrote:
> Hi!
> 
> I've added a _cell member variable to Function. The reason is that I'm
> working on contact mechanics, and contact forces need information
> about the geometry.
> 
> I think more applications could have use for this information. For
> example, a function might need to know the cell size, which could be
> computed this way.
> 
> This means Function::interpolate() is no longer const. Tell me if you
> think this is acceptable, or if we should look for alternative
> implementations.
> 
>   Johan
> 
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/cgi-bin/mailman/listinfo/dolfin-dev
> 

-- 
Anders Logg
Research Assistant Professor
Toyota Technological Institute at Chicago
http://www.tti-c.org/logg/



References