← Back to team overview

dolfin team mailing list archive

Re: patch for boundary indicators (e.g. VMTK) in parallel

 


On 04/04/11 11:23, Anders Logg wrote:
> On Mon, Apr 04, 2011 at 10:25:02AM +0100, Garth N. Wells wrote:
>>
>>
>> On 04/04/11 09:49, Kent-Andre Mardal wrote:
>>> I have a unit test that I can include.
>>>
>>> BTW: A couple of issues concerning this patch.
>>>
>>> 1. I have used a std::map for a global -> local mapping. I don't know if
>>> this
>>>     the most efficient thing to do, but it is certainly convenient.
>>>
>>
>> boost::unordered_map is another possibility.
>>
>>> 2. The boundary indicators are read on every process because these
>>>     arrays are small. Their dimensions are the number of cells on the
>>> boundary.
>>>
>>
>> This isn't scalable - we would need an enhanced alternative.
> 
> It should be possible to fix without too much work.
> 
>>>     I would prefer to not apply this just yet. I'm in the process if
>>>     re-factoring some aspects of parallel mesh functionality. Some classes
>>>     and functions have gotten out of hand.
> 
> Which are those?
> 
> Wouldn't it be better to merge this now so that this new
> functionality can be included in the refactoring?
> 

No, because it would be more work for me.

> Note that this is not particular to reading VMTK data. It is adding a
> missing piece to the reading of parallel meshes which is to include
> stored MeshData.
> 

It adds more code to classes that I'm trying to simplify. That's why I
don't want to include it until I'm finished.

Garth


> --
> Anders
> 
> 
>>>     Register a branch and a merge request so that it doesn't get forgotten.
>>>     Unit tests are also required before patches will be applied.
>>>
>>>     Garth
>>>
>>>
>>>
>>>     On 04/04/11 07:52, Kent-Andre Mardal wrote:
>>>     >
>>>     > Please consider the attached patch.
>>>     >
>>>     > Kent
>>>     >
>>>     >
>>>     >
>>>     > _______________________________________________
>>>     > Mailing list: https://launchpad.net/~dolfin
>>>     <https://launchpad.net/%7Edolfin>
>>>     > Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
>>>     <mailto:dolfin@xxxxxxxxxxxxxxxxxxx>
>>>     > Unsubscribe : https://launchpad.net/~dolfin
>>>     <https://launchpad.net/%7Edolfin>
>>>     > More help   : https://help.launchpad.net/ListHelp
>>>
>>>     _______________________________________________
>>>     Mailing list: https://launchpad.net/~dolfin
>>>     <https://launchpad.net/%7Edolfin>
>>>     Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
>>>     <mailto:dolfin@xxxxxxxxxxxxxxxxxxx>
>>>     Unsubscribe : https://launchpad.net/~dolfin
>>>     <https://launchpad.net/%7Edolfin>
>>>     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




References