<div dir="ltr">Barry,<div><br></div><div>ASM worked before GASM existed. I've never heard of GASM until yesterday, other than seeing the directory in the source. It has been so long, I could probably hunt for a working version, but who cares, we are going to roll back 5 years?</div><div><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class=""><br>
> In branch mark/gamg-agg-asm in ksp ex56, 'make runex56':<br>
<br>
</span> I don't care about this! This is where you have tried to change from GASM to ASM which I told you is non-trivial. </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Give me the example and command line where the GASM version in master (or maint) doesn't work where the error message includes ** Max-trans not allowed because matrix is distributed<br></blockquote><div><br></div><div>Why do you want to debug GASM? I thought we wanted to use ASM. It is not clear why converting from GASM to ASM is non-trivial, I could have done this from the command line. This use aggregate-asm stuff just does what a clever user might do.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
We are not communicating very well, you jumped from stating GASM crashed to monkeying with ASM and now refuse to tell me how to reproduce the GASM crash. </blockquote><div><br></div><div>I don't think you want to mess with GASM, BUT if you run ksp/ex56 with:</div><div><br></div><div>-pc_gamg_use_agg_gasm -mg_levels_pc_type gasm <br></div><div><br></div><div>and remove the existing -mg_levels_pc_type sor, you should see an error that Garth and I saw (eg, appended).</div><div><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">We have to start by fixing the current code to work with GASM (if it ever worked) and then move on to using ASM (which is just an optimization of the GASM usage.)<br>
<span class=""><font color="#888888"><br></font></span></blockquote><div><br></div><div>Are you sure? I am deep into debugging asm with DDT. I can switch to GASM by just calling the GASM set block method and use gasm in the PC, and continue with DDT debugging.</div><div><br></div><div>Let me know.</div><div><br></div><div><br></div><div>16:29 master *= ~/Codes/petsc/src/ksp/ksp/examples/tutorials$ make runex56</div><div>1,4c1,85</div><div>< Linear solve converged due to CONVERGED_RTOL iterations 8</div><div>< Linear solve converged due to CONVERGED_RTOL iterations 8</div><div>< Linear solve converged due to CONVERGED_RTOL iterations 8</div><div>< [0]main |b-Ax|/|b|=1.940043e-04, |b|=4.969822e+00, emax=9.926090e-01</div><div>---</div><div>> [1]PETSC ERROR: ------------------------------------------------------------------------</div><div>> [1]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range</div><div>> [1]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger</div><div>> [1]PETSC ERROR: or see <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind">http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind</a></div><div>> [1]PETSC ERROR: [2]PETSC ERROR: ------------------------------------------------------------------------</div><div>> [2]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range</div><div>> [2]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger</div><div>> [2]PETSC ERROR: or see <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind">http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind</a></div><div>> [2]PETSC ERROR: or try <a href="http://valgrind.org">http://valgrind.org</a> on GNU/linux and Apple Mac OS X to find memory corruption errors</div><div>> [6]PETSC ERROR: ------------------------------------------------------------------------</div><div>> [6]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range</div><div>> [6]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger</div><div>> [6]PETSC ERROR: or see <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind">http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind</a></div><div>> [6]PETSC ERROR: or try <a href="http://valgrind.org">http://valgrind.org</a> on GNU/linux and Apple Mac OS X to find memory corruption errors</div><div>> [4]PETSC ERROR: ------------------------------------------------------------------------</div><div>> [4]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range</div><div>> [4]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger</div><div>> [4]PETSC ERROR: or see <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind">http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind</a></div><div>> [4]PETSC ERROR: or try <a href="http://valgrind.org">http://valgrind.org</a> on GNU/linux and Apple Mac OS X to find memory corruption errors</div><div>> [6]PETSC ERROR: likely location of problem given in stack below</div><div>> [6]PETSC ERROR: --------------------- Stack Frames ------------------------------------</div><div>> [6]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,</div><div>> [6]PETSC ERROR: INSTEAD the line number of the start of the function</div><div>> [6]PETSC ERROR: is given.</div><div>> [6]PETSC ERROR: [6] MatGetSubMatrices_MPIAIJ_Local line 1228 /Users/markadams/Codes/petsc/src/mat/impls/aij/mpi/mpiov.c</div><div>> [6]PETSC ERROR: [6] MatGetSubMatrices_MPIAIJ line 1131 /Users/markadams/Codes/petsc/src/mat/impls/aij/mpi/mpiov.c</div><div>> [6]PETSC ERROR: [6] MatGetSubMatricesMPI_MPIXAIJ line 2163 /Users/markadams/Codes/petsc/src/mat/impls/aij/mpi/mpiov.c</div><div>> [6]PETSC ERROR: [6] MatGetSubMatricesMPI_MPIAIJ line 2418 /Users/markadams/Codes/petsc/src/mat/impls/aij/mpi/mpiov.c</div><div>> [6]PETSC ERROR: [6] MatGetSubMatricesMPI line 6805 /Users/markadams/Codes/petsc/src/mat/interface/matrix.c</div><div>> [6]PETSC ERROR: [6] PCSetUp_GASM line 357 /Users/markadams/Codes/petsc/src/ksp/pc/impls/gasm/gasm.c</div><div>> [6]PETSC ERROR: [6] PCSetUp line 930 /Users/markadams/Codes/petsc/src/ksp/pc/interface/precon.c</div><div>> [6]PETSC ERROR: [6] KSPSetUp line 305 /Users/markadams/Codes/petsc/src/ksp/ksp/interface/itfunc.c</div><div>> [6]PETSC ERROR: [6] PCSetUp_MG line 561 /Users/markadams/Codes/petsc/src/ksp/pc/impls/mg/mg.c</div><div>> [6]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------</div><div>> [6]PETSC ERROR: Signal received </div></div></div></div>