<div dir="ltr"><div dir="ltr">On Wed, Feb 5, 2025 at 12:27 PM Matteo Semplice via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:</div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear all<br>
<br>
     I have updated a code of mine to Petsc3.22, when trying to <br>
uninterpolate a periodic mesh and get the following error<br></blockquote><div><br></div><div>This looks like a bug. I will fix it.</div><div><br></div><div>Note that you can get what you want by passing interpolate = PETSC_FALSE</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
[0]PETSC ERROR: --------------------- Error Message <br>
--------------------------------------------------------------<br>
[0]PETSC ERROR: No support for this operation for this object type<br>
[0]PETSC ERROR: Missing local coordinate vector<br>
[0]PETSC ERROR: WARNING! There are unused option(s) set! Could be the <br>
program crashed before usage or a spelling mistake, etc!<br>
[0]PETSC ERROR:   Option left: name:-dm_view (no value) source: command line<br>
[0]PETSC ERROR: See <a href="https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!faxBLw4JxiiCgvgXrNR1BSgniTuJMn0UxlQ7HDbFsTvh1NfjdD1Od-Ac3koxw3kaxHCmCf6MByHS5ty49s-1W9xW81DQIhYr8dp4Zw$" rel="noreferrer" target="_blank">https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!faxBLw4JxiiCgvgXrNR1BSgniTuJMn0UxlQ7HDbFsTvh1NfjdD1Od-Ac3koxw3kaxHCmCf6MByHS5ty49s-1W9xW81DQIhYr8dp4Zw$</a>  for trouble shooting.<br>
[0]PETSC ERROR: Petsc Release Version 3.22.0, unknown<br>
[0]PETSC ERROR: ./testDM with 1 MPI process(es) and PETSC_ARCH  on <br>
signalkuppe by matteo Wed Feb  5 18:21:24 2025<br>
[0]PETSC ERROR: Configure options: <br>
--prefix=/home/matteo/software/petscsaved/3.22-opt/ <br>
PETSC_DIR=/home/matteo/software/petsc --PETSC_ARCH=opt <br>
--with-debugging=0 --COPTFLAGS="-O3 -march=native -mtune=native -mavx2" <br>
--CXXOPTFLAGS="-O3 -march=native -mtune=native -mavx2" --FOPTFLAGS="-O3 <br>
-march=native -mtune=native -mavx2" --with-strict-petscerrorcode <br>
--download-hdf5 --download-ml --with-metis --with-parmetis --with-gmsh <br>
--with-triangle --with-zlib --with-p4est-dir=~/software/p4est/local/<br>
[0]PETSC ERROR: #1 DMLocalizeCoordinates() at <br>
/home/matteo/software/petsc/src/dm/interface/dmperiodicity.c:368<br>
[0]PETSC ERROR: #2 DMPlexCopy_Internal() at <br>
/home/matteo/software/petsc/src/dm/impls/plex/plexcreate.c:37<br>
[0]PETSC ERROR: #3 DMPlexUninterpolate() at <br>
/home/matteo/software/petsc/src/dm/impls/plex/plexinterpolate.c:1892<br>
[0]PETSC ERROR: #4 main() at ../src/testDM.cpp:32<br>
[0]PETSC ERROR: PETSc Option Table entries:<br>
[0]PETSC ERROR: -dm_view (source: command line)<br>
[0]PETSC ERROR: -dm_view_early (source: command line)<br>
[0]PETSC ERROR: ----------------End of Error Message -------send entire <br>
error message to petsc-maint@mcs.anl.gov----------<br>
<br>
Basically I am creating a quad mesh on [0,1]x[0,1] with the command<br>
<br>
   PetscCall( DMPlexCreateBoxMesh(MPI_COMM_WORLD, dim, simplex, faces, <br>
lower, upper, periodicity, interpolate, 0, PETSC_TRUE, &dmMesh) );<br>
<br>
and then calling<br>
<br>
   PetscCall( DMPlexUninterpolate(dmMesh, &dmMeshUnint) );<br>
<br>
raises the error. This seems independent of the values that I pass for <br>
the new parameters localizationHeight and sparseLocalize.<br>
<br>
Do I need to change something else in addition to adding the new <br>
parameters in the DMPlexCreateBoxMesh call?<br>
<br>
Thanks in advance<br>
<br>
     Matteo<br>
<br>
<br>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!YZMEed4K2IwyEQhBwJUypWI3aKs5Wmwawwo7BynU-0Vn_H-W4_qFcSC3h-JFkofKZsXlP63vBUj4o7DdLz_A$" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>