Skip to content

Commit 7eb4d31

Browse files
committed
movie fix
1 parent f08ffc6 commit 7eb4d31

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 = 32
13+
nprocs = 1
1414

1515
xtick_dist = 16
1616

@@ -21,9 +21,9 @@
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'
26-
ref = 'PFASST_GRAYSCOTT_stats_hf_SPREAD_P32.npz'
26+
# ref = 'PFASST_GRAYSCOTT_stats_hf_SPREAD_P32.npz'
2727

2828
data = np.load(ref)
2929

@@ -109,7 +109,8 @@ def animate(index):
109109

110110
# Set up formatting for the movie files
111111
Writer = animation.writers['ffmpeg']
112-
writer = Writer(fps=1 , metadata=dict(artist='Me'), bitrate=3200)
112+
# choose fps=1 for PFASST, fps=15 for SDC
113+
writer = Writer(fps=15 , metadata=dict(artist='Me'), bitrate=3200)
113114

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

0 commit comments

Comments
 (0)