<div dir="ltr"><div><div><div><div><div><br></div>Okay - sorry Barry, I should have looked at the stack trace more carefully. I see now that the error is coming from a DMDA example.<br><br></div><div>Here is a possible way forward.<br></div>In telescope, I could actually check if the computeoperators method was in fact KSPComputeOperators_SNES(). If it is, then I could set things up differently, e.g. call computeoperators on the parent comm, then if the result mat is an assembled matrix, move it onto the sub-comm.<br><br></div>What do you think? Just another hack??<br><br></div>Cheers<br></div>  Dave<br><div><div><div><div><br><div><div><br><div><div class="m_-1055810052345315296gmail-h5"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> On Feb 13, 2017, at 10:01 AM, Zhang, Hong <<a href="mailto:hongzhang@anl.gov" target="_blank">hongzhang@anl.gov</a>> wrote:<br>
><br>
> Hi Barry,<br>
><br>
> When using telescope, I get an error complaining about missing Jacobian. But apparently I have a Jacobian set by TSSetIJacobian().<br>
><br>
> [0]PETSC ERROR: --------------------- Error Message ------------------------------<wbr>------------------------------<wbr>--<br>
> [0]PETSC ERROR:<br>
> [0]PETSC ERROR: Must call SNESSetJacobian(), DMSNESSetJacobian(), DMDASNESSetJacobianLocal(), etc<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> for trouble shooting.<br>
> [0]PETSC ERROR: Petsc Development GIT revision: v3.7.4-2764-g0ff3c95  GIT Date: 2017-01-10 15:40:21 -0600<br>
> [0]PETSC ERROR: ./ex5adj_ell on a arch-memalign-mkl-avx512-opt named <a href="http://isdp001.cels.anl.gov" rel="noreferrer" target="_blank">isdp001.cels.anl.gov</a> by hongzh Mon Feb 13 09:56:48 2017<br>
> [0]PETSC ERROR: Configure options --COPTFLAGS="-g -O3 -xMIC-AVX512" --CXXOPTFLAGS="-g -O3 -xMIC-AVX512" --FOPTFLAGS="-g -O3 -xMIC-AVX512" --PETSC_ARCH=arch-memalign-mkl<wbr>-avx512-opt --PETSC_DIR=/homes/hongzh/Proj<wbr>ects/petsc --download-cmake --download-revolve=1 --with-blaslapack-dir=/opt/int<wbr>el/2017-initial/compilers_and_<wbr>libraries_2017/linux/mkl/lib/i<wbr>ntel64 --with-cc=mpiicc --with-cxx=mpiicpc --with-debugging=no --with-fc=mpiifort --with-memalign=64 --with-mpiexec=mpirun<br>
> [0]PETSC ERROR: #1 SNESComputeJacobian() line 2242 in /home/hongzh/Projects/petsc/sr<wbr>c/snes/interface/snes.c<br>
> [0]PETSC ERROR: #2 KSPComputeOperators_SNES() line 569 in /home/hongzh/Projects/petsc/sr<wbr>c/snes/interface/snes.c<br>
> [0]PETSC ERROR: #3 KSPSetUp() line 327 in /home/hongzh/Projects/petsc/sr<wbr>c/ksp/ksp/interface/itfunc.c<br>
> [0]PETSC ERROR: #4 KSPSolve() line 599 in /home/hongzh/Projects/petsc/sr<wbr>c/ksp/ksp/interface/itfunc.c<br>
> [0]PETSC ERROR: #5 PCApply_Telescope_dmda() line 952 in /home/hongzh/Projects/petsc/sr<wbr>c/ksp/pc/impls/telescope/teles<wbr>cope_dmda.c<br>
> [0]PETSC ERROR: #6 PCApply() line 458 in /home/hongzh/Projects/petsc/sr<wbr>c/ksp/pc/interface/precon.c<br>
> [0]PETSC ERROR: #7 KSP_PCApply() line 251 in /homes/hongzh/Projects/petsc/i<wbr>nclude/petsc/private/kspimpl.h<br>
> [0]PETSC ERROR: #8 KSPSolve_PREONLY() line 22 in /home/hongzh/Projects/petsc/sr<wbr>c/ksp/ksp/impls/preonly/preonl<wbr>y.c<br>
> [0]PETSC ERROR: #9 KSPSolve() line 656 in /home/hongzh/Projects/petsc/sr<wbr>c/ksp/ksp/interface/itfunc.c<br>
> [0]PETSC ERROR: #10 PCMGMCycle_Private() line 19 in /home/hongzh/Projects/petsc/sr<wbr>c/ksp/pc/impls/mg/mg.c<br>
> [0]PETSC ERROR: #11 PCMGMCycle_Private() line 53 in /home/hongzh/Projects/petsc/sr<wbr>c/ksp/pc/impls/mg/mg.c<br>
> [0]PETSC ERROR: #12 PCMGMCycle_Private() line 53 in /home/hongzh/Projects/petsc/sr<wbr>c/ksp/pc/impls/mg/mg.c<br>
> [0]PETSC ERROR: #13 PCMGMCycle_Private() line 53 in /home/hongzh/Projects/petsc/sr<wbr>c/ksp/pc/impls/mg/mg.c<br>
> [0]PETSC ERROR: #14 PCMGMCycle_Private() line 53 in /home/hongzh/Projects/petsc/sr<wbr>c/ksp/pc/impls/mg/mg.c<br>
> [0]PETSC ERROR: #15 PCApply_MG() line 331 in /home/hongzh/Projects/petsc/sr<wbr>c/ksp/pc/impls/mg/mg.c<br>
> [0]PETSC ERROR: #16 PCApply() line 458 in /home/hongzh/Projects/petsc/sr<wbr>c/ksp/pc/interface/precon.c<br>
> [0]PETSC ERROR: #17 KSP_PCApply() line 251 in /homes/hongzh/Projects/petsc/i<wbr>nclude/petsc/private/kspimpl.h<br>
> [0]PETSC ERROR: #18 KSPInitialResidual() line 67 in /home/hongzh/Projects/petsc/sr<wbr>c/ksp/ksp/interface/itres.c<br>
> [0]PETSC ERROR: #19 KSPSolve_GMRES() line 233 in /home/hongzh/Projects/petsc/sr<wbr>c/ksp/ksp/impls/gmres/gmres.c<br>
> [0]PETSC ERROR: #20 KSPSolve() line 656 in /home/hongzh/Projects/petsc/sr<wbr>c/ksp/ksp/interface/itfunc.c<br>
> [0]PETSC ERROR: #21 SNESSolve_NEWTONLS() line 224 in /home/hongzh/Projects/petsc/sr<wbr>c/snes/impls/ls/ls.c<br>
> [0]PETSC ERROR: #22 SNESSolve() line 3967 in /home/hongzh/Projects/petsc/sr<wbr>c/snes/interface/snes.c<br>
> [0]PETSC ERROR: #23 TS_SNESSolve() line 171 in /home/hongzh/Projects/petsc/sr<wbr>c/ts/impls/implicit/theta/thet<wbr>a.c<br>
> [0]PETSC ERROR: #24 TSStep_Theta() line 211 in /home/hongzh/Projects/petsc/sr<wbr>c/ts/impls/implicit/theta/thet<wbr>a.c<br>
> [0]PETSC ERROR: #25 TSStep() line 3808 in /home/hongzh/Projects/petsc/sr<wbr>c/ts/interface/ts.c<br>
> [0]PETSC ERROR: #26 TSSolve() line 4053 in /home/hongzh/Projects/petsc/sr<wbr>c/ts/interface/ts.c<br>
> [0]PETSC ERROR: #27 main() line 171 in /homes/hongzh/Projects/petsc/s<wbr>rc/ts/examples/tutorials/advec<wbr>tion-diffusion-reaction/ex5adj<wbr>_ell.c<br>
> [0]PETSC ERROR: PETSc Option Table entries:<br>
> [0]PETSC ERROR: -da_refine 4<br>
> [0]PETSC ERROR: -dm_mat_type aij<br>
> [0]PETSC ERROR: -forwardonly<br>
> [0]PETSC ERROR: -ksp_converged_reason<br>
> [0]PETSC ERROR: -ksp_view<br>
> [0]PETSC ERROR: -mg_coarse_pc_telescope_reduct<wbr>ion_factor 2<br>
> [0]PETSC ERROR: -mg_coarse_pc_type telescope<br>
> [0]PETSC ERROR: -mg_coarse_telescope_pc_type lu<br>
> [0]PETSC ERROR: -mg_levels_pc_type jacobi<br>
> [0]PETSC ERROR: -pc_type mg<br>
> [0]PETSC ERROR: -ts_dt 1<br>
> [0]PETSC ERROR: -ts_max_steps 1<br>
> [0]PETSC ERROR: ----------------End of Error Message -------send entire error message to petsc-maint@mcs.anl.gov-------<wbr>---<br>
><br>
> Thanks,<br>
> Hong<br>
<br>
</blockquote></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br></div></div>
</blockquote></div><br></div></div></div></div></div></div></div></div>