<div dir="ltr">Looking at lines 113-115 of master<div><br></div><div><div> if (reuse == MAT_REUSE_MATRIX) {</div><div> ierr = PetscObjectTypeCompare((PetscObject)*newmat,MATSEQDENSE,&isseqdense);CHKERRQ(ierr);</div><div> if (!isseqdense) SETERRQ1(PetscObjectComm((PetscObject)*newmat),PETSC_ERR_USER,"Cannot reuse matrix of type %s",((PetscObject)(*newmat))->type);</div><div> }</div></div><div><br></div><div>you are trying to call MatConvert with the reuse flag on a matrix which is not of type SeqDense. Can you provide a MWE to reproduce the problem?</div><div><br></div><div>Thanks,</div><div>Stefano</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-12-16 16:39 GMT+03:00 Eric Chamberland <span dir="ltr"><<a href="mailto:Eric.Chamberland@giref.ulaval.ca" target="_blank">Eric.Chamberland@giref.ulaval.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Another precision: the problem may still be there since dec 15, not tonight...<span class="HOEnZb"><font color="#888888"><br>
<br>
Eric</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On 16/12/16 08:30 AM, Eric Chamberland wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
something seems broken with master branch since last night.<br>
<br>
With our nighlty tests, we now have many times this PETSC ERROR:<br>
<br>
[0]PETSC ERROR: Cannot reuse matrix of type (null)<br>
[0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/d<wbr>ocumentation/faq.html</a><br>
for trouble shooting.<br>
[0]PETSC ERROR: Petsc Development GIT revision: v3.7.4-2508-ga46e98f GIT<br>
Date: 2016-12-14 17:44:47 -0600<br>
[0]PETSC ERROR:<br>
/pmi/cmpbib/compilation_BIB_gc<wbr>c_redhat_petsc-master_debug/CO<wbr>MPILE_AUTO/BIB/bin/Test.BIBPro<wbr>blemeGD.dev<br>
on a arch-linux2-c-debug named compile by Unknown Fri Dec 16 03:06:00 2016<br>
[0]PETSC ERROR: Configure options --prefix=/opt/petsc-master_deb<wbr>ug<br>
--with-mpi-compilers=1 --with-make-np=12 --with-shared-libraries=1<br>
--with-mpi-dir=/opt/openmpi-1.<wbr>10.2 --with-debugging=yes<br>
--with-mkl_pardiso=1 --with-mkl_pardiso-dir=/opt/in<wbr>tel/composerxe/mkl<br>
--download-ml=yes --download-mumps=yes --download-superlu=yes<br>
--download-superlu_dist=yes --download-parmetis=yes<br>
--download-ptscotch=yes --download-metis=yes --download-suitesparse=yes<br>
--download-hypre=yes --with-scalapack=1<br>
--with-scalapack-include=/opt/<wbr>intel/composerxe/mkl/include<br>
--with-scalapack-lib="-L/opt/i<wbr>ntel/composerxe/mkl/lib/intel6<wbr>4<br>
-lmkl_scalapack_lp64 -lmkl_blacs_openmpi_lp64"<br>
--with-blas-lapack-dir=/opt/in<wbr>tel/composerxe/mkl/lib/intel64<br>
[0]PETSC ERROR: #1 MatConvert_SeqAIJ_SeqDense() line 115 in<br>
/pmi/cmpbib/compilation_BIB_gc<wbr>c_redhat_petsc-master_debug/CO<wbr>MPILE_AUTO/petsc-master-debug/<wbr>src/mat/impls/dense/seq/dense.<wbr>c<br>
<br>
[0]PETSC ERROR: #2 MatConvert() line 4136 in<br>
/pmi/cmpbib/compilation_BIB_gc<wbr>c_redhat_petsc-master_debug/CO<wbr>MPILE_AUTO/petsc-master-debug/<wbr>src/mat/interface/matrix.c<br>
<br>
<br>
<br>
With all other PETSc versions we use, with the same tests, we do not<br>
have this problem.<br>
<br>
Here are the configure/build logs:<br>
<br>
<a href="http://www.giref.ulaval.ca/~cmpgiref/petsc-master-debug/2016.12.16.02h00m01s_configure.log" rel="noreferrer" target="_blank">http://www.giref.ulaval.ca/~cm<wbr>pgiref/petsc-master-debug/2016<wbr>.12.16.02h00m01s_configure.log</a><br>
<br>
<a href="http://www.giref.ulaval.ca/~cmpgiref/petsc-master-debug/2016.12.16.02h00m01s_make.log" rel="noreferrer" target="_blank">http://www.giref.ulaval.ca/~cm<wbr>pgiref/petsc-master-debug/2016<wbr>.12.16.02h00m01s_make.log</a><br>
<br>
<a href="http://www.giref.ulaval.ca/~cmpgiref/petsc-master-debug/2016.12.16.02h00m01s_RDict.log" rel="noreferrer" target="_blank">http://www.giref.ulaval.ca/~cm<wbr>pgiref/petsc-master-debug/2016<wbr>.12.16.02h00m01s_RDict.log</a><br>
<br>
<a href="http://www.giref.ulaval.ca/~cmpgiref/petsc-master-debug/2016.12.16.02h00m01s_CMakeLists.txt" rel="noreferrer" target="_blank">http://www.giref.ulaval.ca/~cm<wbr>pgiref/petsc-master-debug/2016<wbr>.12.16.02h00m01s_CMakeLists.<wbr>txt</a><br>
<br>
<br>
Is it a normal change or is it a bug?<br>
<br>
I can provide more context to help dig into this.<br>
<br>
Thanks,<br>
<br>
Eric<br>
</blockquote>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Stefano</div>
</div>