<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">May be an issue printing to STDOUT, HPC sometimes redirect STDOUT to some other log files. Maybe try redirecting your PetscInfo() or PetscPrintf() output to a file. For PetscInfo its just a filename after the info flag: ./yourCode -info somefile . As for the PetscPrintf you will have to change those calls in your src to PetscFPrintf().<div class=""><div class=""><br class="webkit-block-placeholder"></div><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div>Best regards,<br class=""><br class="">Jacob Faibussowitsch<br class="">(Jacob Fai - booss - oh - vitch)<br class="">Cell: (312) 694-3391</div></div>

</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On Mar 16, 2020, at 9:26 PM, Mark Adams <<a href="mailto:mfadams@lbl.gov" class="">mfadams@lbl.gov</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><br class=""></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 16, 2020 at 9:50 PM Jacob Faibussowitsch <<a href="mailto:jacob.fai@gmail.com" class="">jacob.fai@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" class="">Hello Mark,<div class=""><br class=""></div><div class="">If you are using PetscInfo to print, PetscInfo requires that you pass “-info” as a command line flag in order to print anything. Sounds simple enough to miss, did you run your code with it? i.e. ./yourCode -info? </div></div></blockquote><div class=""><br class=""></div><div class="">Yea, I added -info.</div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" class=""><div class=""><br class=""></div><div class="">For what its worth, PetscPrintf on PETSC_COMM_WORLD will always print but only from proc 0. PetscSynchronizedPrintf prints from all in order. Might be more useful for debugging than PetscInfo!</div></div></blockquote><div class=""><br class=""></div><div class="">Yea, I started with PetscPrintf. Started with WORLD then tried SELF. Still no output but I can step through the code and see the print statements, but nothing.</div><div class=""><br class=""></div><div class="">This is on Cori/Haswell. I have now used printf on my Mac and it works. I did not do an install on my Mac, but I would not think that would matter... I should test that I suppose.</div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" class=""><div class=""><br class=""><div class="">
<div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class=""><div class="">Best regards,<br class=""><br class="">Jacob Faibussowitsch<br class="">(Jacob Fai - booss - oh - vitch)<br class="">Cell: (312) 694-3391</div></div>

</div>
<div class=""><br class=""><blockquote type="cite" class=""><div class="">On Mar 16, 2020, at 7:54 PM, Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank" class="">mfadams@lbl.gov</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">I am trying to debug an application code that works with v3.7 but fails with master. The code works for "normal" solvers but for a solver that uses FieldSplit it fails. It looks like vectors are not getting created from MatCreateVecs with a matrix that is a MatNest (I can't run the code). <div class=""><br class=""></div><div class="">I have put print statements in the interface files to try to see what is going on but the print statements seem to disappear somehow. (I added the same print statements in my installation of v3.7 to see what is different) I was using PetscPrint and then found and example of a Fortran PetscInfo and switched to that. I stepped through the code with DDT and see the print statements but nothing goes to the output. I did this DDT stuff with ex73f90t, which has a MatCreateNest.</div><div class=""><br class=""></div><div class="">I am completely baffled. Does anyone have any ideas?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Mark</div></div>
</div></blockquote></div><br class=""></div></div></blockquote></div></div>
</div></blockquote></div><br class=""></div></body></html>