[petsc-dev] proposed minor PetscPartitioner changes

Eric Chamberland Eric.Chamberland at giref.ulaval.ca
Wed Aug 31 16:49:46 CDT 2022


Thanks Barry, it works fine! :)

Eric


On 2022-08-31 16:28, Barry Smith wrote:
>
>   You  can use PetscObjectSetOptionsPrefix((PetscObject) partitioner,...
>
>
>> On Aug 31, 2022, at 10:21 AM, Eric Chamberland 
>> <Eric.Chamberland at giref.ulaval.ca> wrote:
>>
>> Anyone have something to say about this?
>>
>> Thanks,
>>
>> Eric
>>
>> On 2022-07-06 22:32, Eric Chamberland wrote:
>>>
>>> Hi,
>>>
>>> I was looking for PetscPartitionerSetOptionsPrefix function, but 
>>> only found this post mentioning it.
>>>
>>> I was "blindly" coding with in mind the possibility to manage 
>>> different options for partitioning different meshes for the same 
>>> global computation, so I thought each PetscPartitionner would be 
>>> able to have his own prefixe...
>>>
>>> Do you think it is feasible to add this feature?...
>>>
>>> ...or does it exist under another name?
>>>
>>> Thanks,
>>>
>>> Eric
>>>
>>>
>>> On 2017-11-06 08:09, Vaclav Hapla wrote:
>>>> Hello
>>>>
>>>> The whole PetscPartitioner class sources are part of src/dm/impls/plex/plexpartition.c, mixed together with some DMPlex* functions.
>>>> If you don't mind, I would move the PetscPartitioner* stuff into the separate file petscpartitioner.c
>>>> (in future, it could be even moved to a separate directory).
>>>>
>>>> I would also like to
>>>> * add PetscPartitioner{Add,Set,Get}OptionsPrefix,
>>>> * create the partitioner lazily in DMPlexGetPartitioner, followed by PetscObjectIncrementTabLevel, PetscLogObjectParent and PetscPartitionerSetOptionsPrefix calls,
>>>> * edit src/dm/impls/plex/examples/tutorials/ex5.c so that it calls DMSetFromOptions right after DMPlexCreateFromFile, in order to make the partitioner changeable from options.
>>>>
>>>> Do you have anything against?
>>>>
>>>> Vaclav
>>> -- 
>>> Eric Chamberland, ing., M. Ing
>>> Professionnel de recherche
>>> GIREF/Université Laval
>>> (418) 656-2131 poste 41 22 42
>> -- 
>> Eric Chamberland, ing., M. Ing
>> Professionnel de recherche
>> GIREF/Université Laval
>> (418) 656-2131 poste 41 22 42
>
-- 
Eric Chamberland, ing., M. Ing
Professionnel de recherche
GIREF/Université Laval
(418) 656-2131 poste 41 22 42
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20220831/2f733c40/attachment.html>


More information about the petsc-dev mailing list