<div style="color:black;font: 10pt arial;">Hi,
<br>

<br>
I have been having some trouble trying to refine a DMPlex object using a 
Refinement Function. I have been working with reference to the code 
discussed here: 
<a class="moz-txt-link-freetext" href="https://lists.mcs.anl.gov/mailman/htdig/petsc-users/2019-April/038341.html">https://lists.mcs.anl.gov/mailman/htdig/petsc-users/2019-April/038341.html</a> 
including the code from the GitHub directory mentioned. The error I have 
been getting is as follows:
<br>

<br>
[0]PETSC ERROR: Argument out of range
<br>
[0]PETSC ERROR: No grid refiner of dimension 2 registered
<br>
[0]PETSC ERROR: See <a class="moz-txt-link-freetext" href="http://www.mcs.anl.gov/petsc/documentation/faq.html">http://www.mcs.anl.gov/petsc/documentation/faq.html</a> 
for trouble shooting.
<br>
[0]PETSC ERROR: Petsc Release Version 3.11.2, unknown
<br>
[0]PETSC ERROR: ./fpf on a arch-linux2-c-debug named cromars by daniel 
Thu Aug  1 15:40:18 2019
<br>
[0]PETSC ERROR: Configure options −−download−f2cblaslapack=yes 
−−with−debugging=1 −−download−metis=yes −−download−parmetis=yes 
−−with−fortran−bindings=0 −−with−python=0 -download-openmpi=1 
−−with−c−support −−with−clanguage=cxx
<br>
[0]PETSC ERROR: #1 DMPlexRefine_Internal() line 215 in 
/home/daniel/petsc/src/dm/impls/plex/plexadapt.c
<br>
[0]PETSC ERROR: #2 DMRefine_Plex() line 10381 in 
/home/daniel/petsc/src/dm/impls/plex/plexrefine.c
<br>
[0]PETSC ERROR: #3 DMRefine() line 1881 in 
/home/daniel/petsc/src/dm/interface/dm.c
<br>

<br>
Any help would be greatly appreciated.
<br>

<br>
Thanks,
<br>

<br>
Daniel
</div>