dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #15459
Re: global_dimension
On Thu, Sep 17, 2009 at 10:21:08PM +0200, Garth N. Wells wrote:
>
>
> Mehdi Nikbakht wrote:
> > Hi,
> >
> > Is there any specific reason for returning constant value for
> > DofMap::global_dimension()?
> >
> > Like other similar functions inside DofMap, it would be nice to have:
> >
> > unsigned int global_dimension() const
> > {
> > assert(_global_dimension > 0);
> > return ufc_dof_map->global_dimension();
> > }
> >
> > instead of having,
> >
> > unsigned int global_dimension() const
> > {
> > assert(_global_dimension > 0);
> > return _global_dimension;
> > }
> >
> > where _global_dimension is initialized once inside DofMap constructor.
> >
>
> I've changed this back for now. It may change though again in the
> future. It would then be necessary to update the DofMap after it
> changes, possibly through DofMapBuilder.
>
> Garth
This can happen for example when we refine the mesh. We will need to
figure out to solve this issue at some point.
--
Anders
> >
> > I need this changed to handle crack propagation.
> >
> > Yours,
> > Mehdi
> > _______________________________________________
> > DOLFIN-dev mailing list
> > DOLFIN-dev@xxxxxxxxxx
> > http://www.fenics.org/mailman/listinfo/dolfin-dev
>
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
Attachment:
signature.asc
Description: Digital signature
References