[petsc-users] error in DMSetGlobalSection after update to v3.16.4

Berend van Wachem berend.vanwachem at ovgu.de
Wed Feb 23 03:21:29 CST 2022


Dear PETSc Team,

We are currently having a problem with the function DMSetGlobalSection - 
this worked with v3.16.2 and 3.16.1, but doesn't seem to work anymore in 
PETSc versions after 3.16.2.

I've attached an example which replicates the issue. It creates a box 
with a random field is generated, saved and loaded. The code worked for 
PETSc v3.16.1 and v3.16.2 (main branch) but fails for the last main (and 
release) version v3.16.4.

The issue arises in DMSetGlobalSection(sdm,s) (line 160) as it detects 
the cloned DM sdm as Null argument. I've also included the error message 
at the bottom.

Are we doing something wrong? Or has the 'Cloning' of the dm changed 
recently?

Thanks and best regards,

Berend


********************** Error message ***********************************

[0]PETSC ERROR: --------------------- Error Message 
--------------------------------------------------------------
[0]PETSC ERROR: Null argument, when expecting valid pointer
[0]PETSC ERROR: Null Object: Parameter # 1
[0]PETSC ERROR: See https://petsc.org/release/faq/ for trouble shooting.
[0]PETSC ERROR: Petsc Development GIT revision: v3.16.4-1031-g8387aa1ef1 
  GIT Date: 2022-02-21 23:19:21 -0600
[0]PETSC ERROR: ./bin/restart_periodic on a arch-linux-c-opt named 
zeldovich by serbenlo Tue Feb 22 14:32:56 2022
[0]PETSC ERROR: Configure options --with-debugging=yes 
--with-errorchecking=yes --with-clean --download-metis=yes 
--download-parmetis=yes --download-hdf5 --download-p4est 
--download-triangle --download-tetgen 
--with-zlib-lib=/usr/lib/x86_64-linux-gnu/libz.a 
--with-zlib-include=/usr/include --with-mpi=yes --with-mpi-dir=/usr 
--with-mpiexec=/usr/bin/mpiexec
[0]PETSC ERROR: #1 PetscSectionGetDof() at 
/usr/local/petsc_main/src/vec/is/section/interface/section.c:807
[0]PETSC ERROR: #2 DMDefaultSectionCheckConsistency_Internal() at 
/usr/local/petsc_main/src/dm/interface/dm.c:4520
[0]PETSC ERROR: #3 DMSetGlobalSection() at 
/usr/local/petsc_main/src/dm/interface/dm.c:4614
[0]PETSC ERROR: #4 main() at 
/home/serbenlo/DATA/Arbeit/OvGU_PostDoc_2021/Projects/MF_Restart/Periodic_DM/restart-periodic/src/main.c:161
[0]PETSC ERROR: No PETSc Option Table entries
[0]PETSC ERROR: ----------------End of Error Message -------send entire 
error message to petsc-maint at mcs.anl.gov----------
application called MPI_Abort(MPI_COMM_WORLD, 85) - process 0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: petsc-example.c
Type: text/x-csrc
Size: 6551 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220223/3fe086c2/attachment.bin>


More information about the petsc-users mailing list