← Back to team overview

dolfin team mailing list archive

Re: Parallel MeshFunction IO

 

Ok, sounds promising!

Just to get it straight:

  1) The old MeshFunction file format will not be supported in parallel
  2) To read a MeshFunction from file in parallel I need to convert 
     all my MeshFunctions to MeshValueCollections and store them. Then I use 
     that file to initiate a MeshFunction in parallel?

Doable!

Johan


On Tuesday September 20 2011 01:17:25 Garth N. Wells wrote:
> On 20 September 2011 07:10, Anders Logg <logg@xxxxxxxxx> wrote:
> > MeshFunctions? I think MeshValueCollection works but not yet
> > MeshFunctions.
> > 
> > My suggestion is to either store MeshFunctions as MeshValueCollections:
> > 
> >  <mesh_function>
> >    <mesh_value_collection>
> >    </mesh_value_collection>
> >  </mesh_function>
> > 
> > (when dim is not 0 or D) or to say that parallel I/O for MeshFunction
> > is not supported and make the conversion between MeshFunction and
> > MeshValueCollection easy (constructors).
> 
> I think that the suggestion to store MeshFunctions as
> MeshValueCollections is the best solution. To keep it simple, I would
> use MeshValueCollection for entities of any dimension with a tweak of
> the tags for vertices.
> 
> The tools are in place to read MeshValueCollections from a separate
> file. Just a few small additions are required to make it
> work (right now the domain data needs to be in the mesh file). Once
> this is in place reading MeshFunctions should be easy. I'll add the
> code today.
> 
> Garth
> 
> > --
> > Anders
> > 
> > On Tue, Sep 20, 2011 at 07:58:31AM +0200, Kent-Andre Mardal wrote:
> >> It seems to work now!
> >> 
> >> Kent
> >> 
> >> On 20 September 2011 01:06, Johan Hake <johan.hake@xxxxxxxxx> wrote:
> >>      How far are we from a functional reading of MeshFunctions in
> >>      parallel?
> >> 
> >>      Johan
> >> 
> >>      _______________________________________________
> >>      Mailing list: https://launchpad.net/~dolfin
> >>      Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> >>      Unsubscribe : https://launchpad.net/~dolfin
> >>      More help   : https://help.launchpad.net/ListHelp
> >> 
> >> 
> >> _______________________________________________
> >> Mailing list: https://launchpad.net/~dolfin
> >> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> >> Unsubscribe : https://launchpad.net/~dolfin
> >> More help   : https://help.launchpad.net/ListHelp
> > 
> > _______________________________________________
> > Mailing list: https://launchpad.net/~dolfin
> > Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~dolfin
> > More help   : https://help.launchpad.net/ListHelp
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help   : https://help.launchpad.net/ListHelp


Follow ups

References