<div dir="ltr"><div>I am trying to compose a ISColoring to a Mat. THe code works, I know JacP and iscoloring are valid Mat and ISColoring. I have this:</div><div><br></div>ierr = ((PetscObject)JacP,"coloring",(PetscObject)iscoloring);CHKERRQ(ierr);<div><br></div><div>But it says my ISColoring is not valid. Any suggestions?</div><div><br></div><div>[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------<br>[0]PETSC ERROR: Corrupt argument: <a href="https://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind">https://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind</a><br>[0]PETSC ERROR: Invalid type of object: Parameter # 3<br>[0]PETSC ERROR: See <a href="https://www.mcs.anl.gov/petsc/documentation/faq.html">https://www.mcs.anl.gov/petsc/documentation/faq.html</a> for trouble shooting.<br>[0]PETSC ERROR: Petsc Development GIT revision: v3.13-99-gc486425  GIT Date: 2020-04-10 07:39:29 -0400<br>[0]PETSC ERROR: ./ex11 on a arch-summit-dbg-gnu-cuda named d25n09 by adams Sat Apr 11 18:45:44 2020<br>[0]PETSC ERROR: Configure options --with-fc=0 --COPTFLAGS="-g -O0 -fPIC" --CXXOPTFLAGS="-g -O0 -fPIC" --FOPTFLAGS="-g -O0 -fPIC" --CUDAOPTFLAGS="-O0 -g" --with-ssl=0 --with-batch=0 --with-cxx=mpicxx --with-mpiexec="jsrun -g1" --with-cuda=1 --with-cudac=nvcc --download-p4est=1 --download-zlib --download-hdf5=1 --download-metis --with-make-np=16 --download-parmetis --download-ctetgen --download-amgx --with-blaslapack-lib="-L/autofs/nccs-svm1_sw/summit/.swci/1-compute/opt/spack/20180914/linux-rhel7-ppc64le/gcc-6.4.0/netlib-lapack-3.8.0-wcabdyqhdi5rooxbkqa6x5d7hxyxwdkm/lib64 -lblas -llapack" --with-cc=mpicc --with-shared-libraries=1 --with-x=0 --with-64-bit-indices=0 --with-debugging=1 PETSC_ARCH=arch-summit-dbg-gnu-cuda --with-openmp --force<br>[0]PETSC ERROR: #1 PetscObjectCompose() line 727 in /autofs/nccs-svm1_home1/adams/petsc/src/sys/objects/inherit.c<br>[0]PETSC ERROR: #2 FPLandauCUDAJacobian() line 697 in /autofs/nccs-svm1_home1/adams/petsc/src/vec/vec/impls/seq/seqcuda/<a href="http://landau.cu">landau.cu</a><br>[0]PETSC ERROR: #3 FormLandau() line 531 in /autofs/nccs-svm1_home1/adams/petsc/src/dm/impls/plex/xgc_dmplex.c<br>[0]PETSC ERROR: #4 FPLandIFunction() line 765 in /autofs/nccs-svm1_home1/adams/petsc/src/dm/impls/plex/xgc_dmplex.c<br>[0]PETSC ERROR: #5 REIFunction() line 736 in ex11.c<br>[0]PETSC ERROR: #6 TSComputeIFunction() line 894 in /autofs/nccs-svm1_home1/adams/petsc/src/ts/interface/ts.c<br>[0]PETSC ERROR: #7 SNESTSFormFunction_ARKIMEX() line 1034 in /autofs/nccs-svm1_home1/adams/petsc/src/ts/impls/arkimex/arkimex.c<br>[0]PETSC ERROR: #8 SNESTSFormFunction() line 4983 in /autofs/nccs-svm1_home1/adams/petsc/src/ts/interface/ts.c<br>[0]PETSC ERROR: #9 SNESComputeFunction() line 2383 in /autofs/nccs-svm1_home1/adams/petsc/src/snes/interface/snes.c<br>[0]PETSC ERROR: #10 SNESSolve_NEWTONLS() line 175 in /autofs/nccs-svm1_home1/adams/petsc/src/snes/impls/ls/ls.c<br>[0]PETSC ERROR: #11 SNESSolve() line 4520 in /autofs/nccs-svm1_home1/adams/petsc/src/snes/interface/snes.c<br>[0]PETSC ERROR: #12 TSStep_ARKIMEX() line 811 in /autofs/nccs-svm1_home1/adams/petsc/src/ts/impls/arkimex/arkimex.c<br>[0]PETSC ERROR: #13 TSStep() line 3721 in /autofs/nccs-svm1_home1/adams/petsc/src/ts/interface/ts.c<br>[0]PETSC ERROR: #14 TSSolve() line 4127 in /autofs/nccs-svm1_home1/adams/petsc/src/ts/interface/ts.c<br></div></div>