<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="">Hello Emmanuel,<div class="">I broke that, so I’ll fix it.</div><div class="">I think you can bypass the error by explicitly resetting the appropriate option after your call to MatChop()?</div><div class=""> ierr = MatChop(A, tol);CHKERRQ(ierr);</div><div class=""> ierr = MatSetOption(A, MAT_NO_OFF_PROC_ENTRIES, PETSC_FALSE);CHKERRQ(ierr);</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Pierre<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 21 May 2021, at 5:49 PM, Emmanuel Ayala <<a href="mailto:juaneah@gmail.com" class="">juaneah@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hi everybody,</div><div class=""><br class=""></div><div class="">I just updated petsc from version 13 to 15. Before the update everything works well, then my code give me an error:</div><div class=""><br class=""></div><div class="">[9]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------<br class="">[9]PETSC ERROR: Invalid argument<br class="">[9]PETSC ERROR: Setting off process row 53484 even though MatSetOption(,MAT_NO_OFF_PROC_ENTRIES,PETSC_TRUE) was set<br class="">[9]PETSC ERROR: See <a href="https://www.mcs.anl.gov/petsc/documentation/faq.html" class="">https://www.mcs.anl.gov/petsc/documentation/faq.html</a> for trouble shooting.<br class="">[9]PETSC ERROR: Petsc Release Version 3.15.0, Mar 30, 2021 <br class="">[9]PETSC ERROR: ./comp on a arch-linux-c-opt-O2-superlud_mumps_hyp named eayala by ayala Fri May 21 10:40:36 2021<br class="">[9]PETSC ERROR: Configure options --with-debugging=0 COPTFLAGS="-O2 -march=native -mtune=native" CXXOPTFLAGS="-O2 -march=native -mtune=native" FOPTFLAGS="-O2 -march=native -mtune=native" --download-mpich --download-hypre --download-mumps --download-scalapack --download-parmetis --download-metis --download-superlu_dist --download-cmake --download-fblaslapack=1 --with-cxx-dialect=C++11</div><div class=""><br class=""></div><div class="">The error appears after a matrix assembly, the matrix was created with DMCreateMatrix and updated with MatSetValuesLocal.</div><div class=""><br class=""></div><div class="">A Little work around I found the solution, avoid using MatChop on this matrix, but I still need to use MatChop. There is any reason to have this problem?</div><div class=""><br class=""></div><div class="">Thanks in advance.<br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div>
</div></blockquote></div><br class=""></div></body></html>