Skip to content

Commit 450efac

Browse files
committed
animate fixes
1 parent 7eb4d31 commit 450efac

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

examples/fault_tolerance/animate_convergence.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
rc('xtick', labelsize='small')
1111
rc('ytick', labelsize='small')
1212

13-
nprocs = 1
13+
nprocs = 32
1414

1515
xtick_dist = 16
1616

@@ -21,9 +21,10 @@
2121
maxiter = 0
2222
nsteps = 0
2323

24-
ref = 'SDC_GRAYSCOTT_stats_hf_NOFAULT_new.npz'
24+
# ref = 'SDC_GRAYSCOTT_stats_hf_NOFAULT_new.npz'
2525
# ref = 'PFASST_GRAYSCOTT_stats_hf_NOFAULT_P32.npz'
2626
# ref = 'PFASST_GRAYSCOTT_stats_hf_SPREAD_P32.npz'
27+
ref = 'PFASST_GRAYSCOTT_stats_hf_INTERP_PREDICT_P32.npz'
2728

2829
data = np.load(ref)
2930

@@ -36,7 +37,7 @@
3637

3738
residual = np.where(residual > 0, np.log10(residual), -99)
3839
vmin = -9
39-
vmax = int(np.amax(residual))
40+
vmax = -1#int(np.amax(residual))
4041

4142
maxiter = max(maxiter,int(max(iter_count)))
4243
maxiter_full = max(maxiter_full,maxiter)
@@ -110,7 +111,7 @@ def animate(index):
110111
# Set up formatting for the movie files
111112
Writer = animation.writers['ffmpeg']
112113
# choose fps=1 for PFASST, fps=15 for SDC
113-
writer = Writer(fps=15 , metadata=dict(artist='Me'), bitrate=3200)
114+
writer = Writer(fps=1 , metadata=dict(artist='Me'), bitrate=3200)
114115

115116
fname = 'anim_conv_'+ref.split('.')[0]+'.mp4'
116117
anim.save(fname,writer=writer)

0 commit comments

Comments
 (0)