dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #21451
Re: [noreply@xxxxxxxxxxxxx: [Branch ~dolfin-core/dolfin/rognes] Rev 5663: Add init to child after mesh refinement (why is this needed?!) and]
On Sun, Feb 13, 2011 at 10:31:03PM +0100, Marie E. Rognes wrote:
> On 02/13/2011 10:02 PM, Anders Logg wrote:
>
> mesh.init() computes all connectivity and should almost never be
> called, at least not from inside DOLFIN.
>
> Instead, the proper init function for the connectivity that is
> actually used should be called, like mesh.init(1, 2) or similar.
>
> Note that calling init functions is not needed when using iterators
> since the connectivity is then automatically initialized.
>
> The mesh that comes out of refine() is a clean mesh that only has
> cell-vertex connectivity so it's not strange that one needs to call
> some init function.
>
>
>
>
> Yes and no... I'm encountering some slightly mysterious behaviour, but will
> sort it out.
I'm sure you will. Good luck. :-)
--
Anders
References