[petsc-users] Issues with log_view on windows

Milan Pelletier milan.pelletier at protonmail.com
Mon Nov 22 10:49:18 CST 2021


Satish,
Indeed, but I was trying to write it to another drive.
Anyways, that's not a big deal, only inconvenience. I can just use your trick and create a symlink to point to the proper location on another drive.

Thank you all for your help,

Best,
Milan Pelletier

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

Le lundi 22 novembre 2021 à 5:36 PM, Satish Balay via petsc-users <petsc-users at mcs.anl.gov> a écrit :

> I think one use case where ':' can be avoided with absolute path is - - if currently on the same drive
>
> Satish
>
> ---------------------------------------------------------------------------------------------------------------
>
> C:\cygwin64\home\balay>dir \
>
> Volume in drive C is OS
>
> Volume Serial Number is 30F3-283B
>
> Directory of C:\
>
> 05/11/2021 07:19 AM <DIR> cygwin64
>
> 04/02/2021 06:29 PM <DIR> dell
>
> 11/22/2021 07:59 AM <DIR> Intel
>
> 12/07/2019 01:14 AM <DIR> PerfLogs
>
> 11/03/2021 06:03 AM <DIR> Program Files
>
> 04/10/2021 08:11 AM <DIR> Program Files (x86)
>
> 09/10/2021 01:24 PM <DIR> Users
>
> 11/09/2021 07:13 PM <DIR> Windows
>
>                0 File(s)              0 bytes
>                8 Dir(s)  87,535,738,880 bytes free
>
>
> C:\cygwin64\home\balay>dir \cygwin64
>
> Volume in drive C is OS
>
> Volume Serial Number is 30F3-283B
>
> Directory of C:\cygwin64
>
> 05/11/2021 07:19 AM <DIR> .
>
> 05/11/2021 07:19 AM <DIR> ..
>
> 09/10/2021 12:24 PM <DIR> bin
>
> 04/02/2021 05:45 PM 53,342 Cygwin-Terminal.ico
>
> 05/11/2021 07:19 AM 88 Cygwin.bat
>
> 04/02/2021 05:45 PM 157,097 Cygwin.ico
>
> 04/02/2021 05:45 PM <DIR> dev
>
> 09/10/2021 12:23 PM <DIR> etc
>
> 09/10/2021 01:24 PM <DIR> home
>
> 09/10/2021 12:23 PM <DIR> lib
>
> 04/02/2021 05:45 PM <DIR> sbin
>
> 11/22/2021 08:33 AM <DIR> tmp
>
> 09/10/2021 12:23 PM <DIR> usr
>
> 04/02/2021 07:40 PM <DIR> var
>
>                3 File(s)        210,527 bytes
>               11 Dir(s)  87,535,652,864 bytes free
>
>
> C:\cygwin64\home\balay>
>
> On Mon, 22 Nov 2021, Satish Balay via petsc-users wrote:
>
> > Well our build tools use cygwin - but the library is built with MS/Intel compilers - they use paths in windows notation.
> >
> > I'm not sure if there is a way to get windows PATHs without ':'
> >
> > Satish
> >
> > On Mon, 22 Nov 2021, Matthew Knepley wrote:
> >
> > > On Mon, Nov 22, 2021 at 10:36 AM
> > >
> > > Milan Pelletier
> > >
> > > <
> > >
> > > milan.pelletier at protonmail.com> wrote:
> > >
> > > > Matt,
> > > >
> > > > Thanks for the answer. I could fix my issue regarding unbalanced events -
> > > >
> > > > and so SNES ex5 does work well too.
> > > >
> > > > 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.
> > >
> > > 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.
> > >
> > > > Unfortunately, regarding absolute paths, I had also tried to use cygwin
> > > >
> > > > paths (`/cygdrive/c/...`) but that does not work either.
> > >
> > > Hmm, that should work I think. Satish, do we have a machine to login and
> > >
> > > test something like this?
> > >
> > > Thanks,
> > >
> > >      Matt
> > >
> > >
> > > > Best,
> > > >
> > > > Milan
> > > >
> > > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> > > >
> > > > Le lundi 22 novembre 2021 à 2:39 PM, Matthew Knepley knepley at gmail.com
> > > >
> > > > a écrit :
> > > >
> > > > On Mon, Nov 22, 2021 at 5:38 AM Milan Pelletier via petsc-users <
> > > >
> > > > petsc-users at mcs.anl.gov> wrote:
> > > >
> > > > > Dear PETSc team,
> > > > >
> > > > > The way some options are passed to PETSc can be an issue on Windows, in
> > > > >
> > > > > particular regarding the "log_view" option.
> > > > >
> > > > > 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?
> > > >
> > > > I thought we used Cygwin paths, but maybe one of the Windows people knows
> > > >
> > > > better.
> > > >
> > > > > Besides, when I try to use the ascii_xml format, it crashes in file
> > > > >
> > > > > xmllogevent.c, on line 751:
> > > > >
> > > > > illegalEvent = 1+nestedEvents[nNestedEvents-1].nstEvent;
> > > > >
> > > > > (since nestedEvents is NULL).
> > > >
> > > > This likely means that you have unbalanced events. I can run this on
> > > >
> > > > examples. For instance does SNES ex5 work for you?
> > > >
> > > > Thanks,
> > > >
> > > >      Matt
> > > >
> > > >
> > > > > I'm using PETSc version 3.16.1 (using `git checkout tags/v3.16.1`).
> > > > >
> > > > > Thanks for your help,
> > > > >
> > > > > Best regards,
> > > > >
> > > > > Milan Pelletier
> > > >
> > > > --
> > > >
> > > > What most experimenters take for granted before they begin their
> > > >
> > > > experiments is infinitely more interesting than any results to which their
> > > >
> > > > experiments lead.
> > > >
> > > > -- Norbert Wiener
> > > >
> > > > https://www.cse.buffalo.edu/~knepley/
> > > >
> > > > http://www.cse.buffalo.edu/~knepley/


More information about the petsc-users mailing list