<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>I was looking for PetscPartitionerSetOptionsPrefix function, but only found this post mentioning it.</p>
<p>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>Do you think it is feasible to add this feature?...</p>
<p>...or does it exist under another name?
</p>
<p>Thanks,</p>
<p>Eric</p>
<p>
<style type="text/css">p, li { white-space: pre-wrap; }</style></p>
<div class="moz-cite-prefix">On 2017-11-06 08:09, Vaclav Hapla
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:77665596-15D7-4D5B-BC33-DC40BDD8DB47@erdw.ethz.ch">
<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>
</body>
</html>