예제 #1
0
 def make_timing_plots(plotdata):
     import os
     from clawpack.visclaw import plot_timing_stats
     try:
         timing_plotdir = plotdata.plotdir + '/timing_figures'
         os.system('mkdir -p %s' % timing_plotdir)
         units = {'comptime':'seconds', 'simtime':'hours', 'cell':'millions'}
         plot_timing_stats.make_plots(outdir=plotdata.outdir, make_pngs=True,
                                       plotdir=timing_plotdir, units=units)
         os.system('cp %s/timing.* %s' % (plotdata.outdir, timing_plotdir))
     except:
         print('*** Error making timing plots')
예제 #2
0
 def make_timing_plots(plotdata):
     from clawpack.visclaw import plot_timing_stats
     import os,sys
     try:
         timing_plotdir = plotdata.plotdir + '/_timing_figures'
         os.system('mkdir -p %s' % timing_plotdir)
         # adjust units for plots based on problem:
         units = {'comptime':'seconds', 'simtime':'hours', 
                  'cell':'millions'}
         plot_timing_stats.make_plots(outdir=plotdata.outdir, 
                                       make_pngs=True,
                                       plotdir=timing_plotdir, 
                                       units=units)
     except:
         print('*** Error making timing plots')