fdkong / petscplot Goto Github PK
View Code? Open in Web Editor NEWThis project forked from caidao22/petscplot
Plot convergence rates and scalability from output logs of PETSc programs
This project forked from caidao22/petscplot
Plot convergence rates and scalability from output logs of PETSc programs
PETScPlot is a simple tool for plotting convergence rates and scalability from output logs of PETSc programs. Dependencies: python-2.5 or later: http://python.org numpy: http://numpy.org matplotlib: http://matplotlib.sourceforge.net Usage: [Read the doc strings, they are more likely to be up-to-date. Also run with -help.] Run your program with -{ksp,snes}_{monitor,converged_reason} and redirect the output into a file, perhaps for multiple problem sizes, or on different machines. If you want timing information, also use -log_summary. Note: Currently the problem size parsing is specific to src/snes/examples/tutorials/ex48, it really needs to be made generic, but that requires the user to write a small code snippet to parse their header. Then pass series of log files to petscplot, as in the following examples. petscplot -t algorithmic foo{2,3,4,5,6}.log : bar{2,3,4,5,6}.log Plots average number of Krylov iterations per nonlinear iteration versus number of nodes, on a log-log scale. petscplot --type=algorithmic foo{2,3,4,5,6}.log : bar{2,3,4,5,6}.log \ --legend-labels='Foo Algorithm:Bar' --output=foobar.png Uses the given legend (instead of first filename in each series) and directs output to the PNG file. petscplot -t snes -m poster gridsequenced.log -o foobar.eps Plots hybrid linear and nonlinear residuals for a grid-sequenced simulation, formatted for placement on a poster, in EPS format (short style options). petscplot -t weak SERIES [ : SERIES ] ... Not implemented yet, but necessary data has been parsed. petscplot -t strong [--stage STAGE] [--event EVENT] SERIES [ : SERIES ] ... Plots solve time versus number of procs on a log-log scale with the optimal slope=-1 line shown.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.