[Dune] initializing parallel user data from file

Marco Cisternino marco.cisternino at optimad.it
Wed Sep 12 14:41:28 CEST 2012


This is exactly what I need. I'll take a look.
Thank you, Andreas.

Marco

Il 12/09/2012 14:32, Dedner, Andreas ha scritto:
> Do you have the grid and data vector on one process and want to call
> loadBalance on the grid?
> If thats what you need, you can use the loadBalance method taking a data handler.
> An example is given in the lloadBalance method on the GridPtr class
> dune/grid/io/file/dgfparser/gridptr.hh
> If you need something different then ypu need to provide more information...
> Best
> Andreas
> _______________________________________
> From: dune-bounces+a.s.dedner=warwick.ac.uk at dune-project.org [dune-bounces+a.s.dedner=warwick.ac.uk at dune-project.org] on behalf of Marco Cisternino [marco.cisternino at optimad.it]
> Sent: 12 September 2012 12:59
> To: dune at dune-project.org
> Subject: [Dune] initializing parallel user data from file
>
> Good morning duners,
> I would like to initialize a parallel user data vector from a grid input
> file.
> The grid files (.vrt and .cel) are in PROStar format and the last column
> of the .cel file contains the values of the scalar field I want to use
> in order to initialize the user data vector.
> Is there a standard way to do this?
> I tried some ways but I always need to communicate a global id. Can I
> avoid this?
> Thank you for your help.
>
> Marco
>
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
>
>

-- 
Marco Cisternino
Optimad Engineering s.r.l.
www.optimad.it
marco.cisternino at optimad.it
+3901119719782





More information about the Dune mailing list