Interesting ! This does almost what I need. Yes, adding a "%r" feature could be a convenient thing. Also, is it possible to append traces to an existing log ? Tried '-a_ksp_view ascii:a.log:append' without success and can't find the expected keys (to build the command line) in the doc (local solves are handled by each proc iteratively => need to append traces to previous ones at each iteration).
Franck ----- Mail original ----- > De: "Jed Brown" <j...@jedbrown.org> > À: "Franck Houssen" <franck.hous...@inria.fr>, "Barry Smith" > <bsm...@mcs.anl.gov> > Cc: "petsc-dev" <petsc-dev@mcs.anl.gov> > Envoyé: Mercredi 2 Août 2017 19:00:00 > Objet: Re: [petsc-dev] How to get ordered (readable) dumps when using > ksp_view with several prefixed solvers (1 > solver per MPI proc) ? > > Franck Houssen <franck.hous...@inria.fr> writes: > > > Jed, I totally understand your answer ! I was just wondering if a relevant > > option (at the command line) could do the trick. > > Barry, I'll try to give a try to your suggestion. > > If you can use different prefix, you could write > > -a_ksp_view ascii:a.log -b_ksp_view ascii:b.log > > We could perhaps add a feature to recognize "%r" in a viewer name and > replace it with the rank (relative to PETSC_COMM_WORLD) of the root > process in the communicator processing the option, but that doesn't > currently exist. >