<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div> You can use <span style="color: rgb(0, 0, 255); font-family: Menlo; font-size: 14px; background-color: rgb(162, 255, 159);" class="">PetscObjectSetOptionsPrefix((PetscObject) partitioner,...</span><div class=""><font color="#0000ff" face="Menlo" class=""><span style="caret-color: rgb(0, 0, 255); font-size: 14px; background-color: rgb(162, 255, 159);" class=""><br class=""></span></font><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 31, 2022, at 10:21 AM, Eric Chamberland <<a href="mailto:Eric.Chamberland@giref.ulaval.ca" class="">Eric.Chamberland@giref.ulaval.ca</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta charset="UTF-8" class=""><p class="">Anyone have something to say about this?</p><p class="">Thanks,</p><p class="">Eric</p><div class="moz-cite-prefix">On 2022-07-06 22:32, Eric Chamberland wrote:<br class=""></div><blockquote type="cite" cite="mid:2e24bf11-3889-617f-01b6-eeaa5460b53b@giref.ulaval.ca" class=""><p class="">Hi,</p><p class="">I was looking for PetscPartitionerSetOptionsPrefix function, but only found this post mentioning it.</p><p class="">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...</p><p class="">Do you think it is feasible to add this feature?...</p><p class="">...or does it exist under another name?</p><p class="">Thanks,</p><p class="">Eric</p><div class=""><br class="webkit-block-placeholder"></div><div class="moz-cite-prefix">On 2017-11-06 08:09, Vaclav Hapla wrote:<br class=""></div><blockquote type="cite" cite="mid:77665596-15D7-4D5B-BC33-DC40BDD8DB47@erdw.ethz.ch" class=""><pre class="moz-quote-pre" wrap="">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</pre></blockquote><pre class="moz-signature" cols="72">--
Eric Chamberland, ing., M. Ing
Professionnel de recherche
GIREF/Université Laval
(418) 656-2131 poste 41 22 42</pre></blockquote><pre class="moz-signature" cols="72">--
Eric Chamberland, ing., M. Ing
Professionnel de recherche
GIREF/Université Laval
(418) 656-2131 poste 41 22 42</pre></div></blockquote></div><br class=""></div></body></html>