Closed rjleveque closed 2 years ago
Looks good to me. I really like the listing!
There is actually a read_t()
function in the pyclaw/fileio/*.py files; it might be nice to use that here so that we don't need to maintain two functions that do the same thing. Should make this code simpler, too. And petclaw/fileio/petsc.py
has a read_t()
function too, so this should also then work for those files.
File format is now specified in the fort.t*
files, see the discussion at https://github.com/clawpack/geoclaw/pull/533.
So there is no need to try to auto-detect it.
This requires clawpack/pyclaw#581.
The default
ClawPlotData.format
value is nowNone
, indicating that pyclaw should figure it out for itself.I added a function
ClawPlotData.getframe_time
that is now used inplotpages.py
to only grab the times, in place of the deprecatedOutputController
function.While I was at it, I also added a function
ClawPlotData.getframe_list
that returns a list of all theframenos
found inplotdata.outdir
and the corresponding time, and a function toIplotclaw
so that this can be easily invoked at the interactivePLOTCLAW>
prompt, with output like this:I've been meaning to do this for a long time!