[petsc-users] saving log info
Hi guys, I'd like to be able to post-process the values reported by -log_summary. Is there any programmatic way to extract the data and save it manually to a file? If not, is there any parser that go over stdout dump and extract the info? Mohammad
Re: [petsc-users] saving log info
Mohammad Mirzadeh mirza...@gmail.com writes: Hi guys, I'd like to be able to post-process the values reported by -log_summary. Is there any programmatic way to extract the data and save it manually to a file? If not, is there any parser that go over stdout dump and extract the info? I made a somewhat specialized parser and plotter here https://github.com/jedbrown/petscplot Unfortunately, I never turned it into a library or easily-reusable tool. These plots were for convergence performance with grid sequencing. https://github.com/jedbrown/petscplot/wiki/PETSc-Plot The parser is robust and easy to modify for whatever grammar you have (depending on what you're logging). pgpBd468x0jq0.pgp Description: PGP signature
Re: [petsc-users] saving log info
Thanks Jed. This looks interesting. On Thu, Jan 30, 2014 at 2:45 PM, Jed Brown j...@jedbrown.org wrote: Mohammad Mirzadeh mirza...@gmail.com writes: Hi guys, I'd like to be able to post-process the values reported by -log_summary. Is there any programmatic way to extract the data and save it manually to a file? If not, is there any parser that go over stdout dump and extract the info? I made a somewhat specialized parser and plotter here https://github.com/jedbrown/petscplot Unfortunately, I never turned it into a library or easily-reusable tool. These plots were for convergence performance with grid sequencing. https://github.com/jedbrown/petscplot/wiki/PETSc-Plot The parser is robust and easy to modify for whatever grammar you have (depending on what you're logging).
Re: [petsc-users] saving log info
master now has a viewer that dumps the raw data in Python, then you can write python scripts to process it any way you want. -log_view ascii:filename:ascii_info_detail sample python script in bin/pythonscripts/petsclogformat.py I personally think that parsing the output of -log_summary (which has already been formatted) is a silly wrong headed approach. Barry On Jan 30, 2014, at 4:26 PM, Mohammad Mirzadeh mirza...@gmail.com wrote: Hi guys, I'd like to be able to post-process the values reported by -log_summary. Is there any programmatic way to extract the data and save it manually to a file? If not, is there any parser that go over stdout dump and extract the info? Mohammad
Re: [petsc-users] saving log info
On Thu, Jan 30, 2014 at 5:56 PM, Barry Smith bsm...@mcs.anl.gov wrote: master now has a viewer that dumps the raw data in Python, then you can write python scripts to process it any way you want. -log_view ascii:filename:ascii_info_detail sample python script in bin/pythonscripts/petsclogformat.py I personally think that parsing the output of -log_summary (which has already been formatted) is a silly wrong headed approach. Cool, I will look at switching src/benchmarks/benchmarkExample.py to this. Matt Barry On Jan 30, 2014, at 4:26 PM, Mohammad Mirzadeh mirza...@gmail.com wrote: Hi guys, I'd like to be able to post-process the values reported by -log_summary. Is there any programmatic way to extract the data and save it manually to a file? If not, is there any parser that go over stdout dump and extract the info? Mohammad -- 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