[aspect-devel] read parameter file with Python

Timo Heister heister at clemson.edu
Wed Feb 21 06:27:57 PST 2018


> (My point here is: I have about 20/30 runs, I want to take the maximum
> velocity at the end of each runs — if they reached steady state —, and plot
> it as function of two parameters from the parameter file. I could do it “by
> hand”, but I am guessing there is a easier way?)

The way I usually do this is that I name the output directory based on
the significant parameters, see benchmarks/blankenbach/ for an
example. Here we automatically generate files like case1a_ref5.stat
automatically.

You could also write a small plugin that outputs the parameters you
are interested in into the statistics, the screen, or some separate
file. We do this for the examples that compute errors but nobody stops
you from outputting other vital information. If you are parsing the
statistics file anyways, you can grab it from the respective column.

This is not as clean as actually parsing the parameters, but it might
be good enough for your problem.

-- 
Timo Heister
http://www.math.clemson.edu/~heister/


More information about the Aspect-devel mailing list