<div>Sorry, my input was actually "-log_view :/cygdrive/c/some_path_that_exists/petsc_log.txt" with the proper colon separator required by PETSc!<br><br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user"><div><span class="colour" style="color:rgb(107,107,107);">Milan Pelletier</span><br></div></div><div class="protonmail_signature_block-proton protonmail_signature_block-empty"></div></div><div><br></div><div class="protonmail_quote">
        ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br>
        Le lundi 22 novembre 2021 à 5:29 PM, Milan Pelletier via petsc-users <petsc-users@mcs.anl.gov> a écrit :<br>
        <blockquote class="protonmail_quote" type="cite">
            <div>I get a "Unable to open file" error:<br>"Cannot open PetscViewer file: \\cygdrive\\c\\some_path_that_exists\\petsc_log.txt".<br><br>My input to PETSc was "-log_view /cygdrive/c/some_path_that_exists/petsc_log.txt" so the path gets converted into windows "\\" separators.<br></div><div><br></div><div>I tried and looked for a way to avoid using a colon but could not find one.<br><br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user"><div><span style="color:rgb(107,107,107);">Milan</span><br></div></div><div class="protonmail_signature_block-proton protonmail_signature_block-empty"></div></div><div><br></div><div class="protonmail_quote">
        ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br>
        Le lundi 22 novembre 2021 à 5:05 PM, Matthew Knepley <knepley@gmail.com> a écrit :<br>
        <blockquote class="protonmail_quote" type="cite">
            <div dir="ltr"><div dir="ltr">On Mon, Nov 22, 2021 at 10:36 AM Milan Pelletier <<a href="mailto:milan.pelletier@protonmail.com" rel="noreferrer nofollow noopener" target="_blank">milan.pelletier@protonmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div>Matt,<br>Thanks for the answer. I could fix my issue regarding unbalanced events - and so SNES ex5 does work well too.<br>By the way, such imbalance does not trigger errors when log_view is using plain ascii output, but it does fail when ascii_xml is used instead.</div></blockquote><div><br></div><div>Yes, we have a "failsafe" for the regular logging, but the XML is specifically hierarchical and we do not know how to close it. We could take another look at that.</div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div>Unfortunately, regarding absolute paths, I had also tried to use cygwin paths (`/cygdrive/c/...`) but that does not work either.</div></blockquote><div><br></div><div>Hmm, that should work I think. Satish, do we have a machine to login and test something like this?</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div>Best,<br></div><div><div><div><span style="color:rgb(107,107,107)">Milan</span><br></div></div><div></div></div><div><br></div><div>
        ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br>
        Le lundi 22 novembre 2021 à 2:39 PM, Matthew Knepley <<a target="_blank" href="mailto:knepley@gmail.com" rel="noreferrer nofollow noopener">knepley@gmail.com</a>> a écrit :<br>
        <blockquote type="cite">
            <div dir="ltr"><div dir="ltr">On Mon, Nov 22, 2021 at 5:38 AM Milan Pelletier via petsc-users <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:<br></div><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>Dear PETSc team,<br></div><div><br></div><div>The way some options are passed to PETSc can be an issue on Windows, in particular regarding the "log_view" option.<br></div><div><div>Since the colon ':' character is used as a separator, I do not see how absolute paths should be provided on Windows (since the drive name includes a colon). Is there a trick / workaround to overcome this?</div></div></blockquote><div><br></div><div>I thought we used Cygwin paths, but maybe one of the Windows people knows better.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>Besides, when I try to use the ascii_xml format, it crashes in file xmllogevent.c, on line 751:<br></div>  illegalEvent = 1+nestedEvents[nNestedEvents-1].nstEvent;<br></div><div>(since nestedEvents is NULL).<br></div></blockquote><div><br></div><div>This likely means that you have unbalanced events. I can run this on examples. For instance does SNES ex5 work for you?</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div></div><div>I'm using PETSc version 3.16.1 (using `git checkout tags/v3.16.1`).<br><br>Thanks for your help,<br>Best regards,<br></div><div><div><div><span style="color:rgb(107,107,107)">Milan Pelletier</span><br></div></div><div></div></div><div><br></div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a target="_blank" rel="noreferrer nofollow noopener" href="http://www.cse.buffalo.edu/~knepley/">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>

        </blockquote><br>
    </div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a target="_blank" href="http://www.cse.buffalo.edu/~knepley/" rel="noreferrer nofollow noopener">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>

        </blockquote><br>
    </div>
        </blockquote><br>
    </div>