<jupyter_start><jupyter_text>Filament---Scalar advection problem with swirling velocity field.--- Run code in **serial mode** (will work, even if code is compiled with MPI)<jupyter_code>!filament<jupyter_output><empty_output><jupyter_text>---Or, run code in **parallel mode** (command may need to be customized, depending your on MPI installation.)<jupyter_code>!mpirun -n 4 filament<jupyter_output>[libsc] This is libsc 2.0.5-2d03
[libsc] CPP                      mpicxx -E
[libsc] CPPFLAGS                 
[libsc] CC                       mpicxx
[libsc] CFLAGS                   -g -Wall -O0
[libsc] LDFLAGS                  
[libsc] LIBS                     -lgomp   -lz   
[libsc] Shared memory node communicator size: 4
[p4est] This is p4est 2.0.21-5772
[p4est] CPP                      mpicxx -E
[p4est] CPPFLAGS                 
[p4est] CC                       mpicxx
[p4est] CFLAGS                   -g -Wall -O0
[p4est] LDFLAGS                  
[p4est] LIBS                     -lgomp   -lz   
[fclaw] This is ForestClaw 0.1.3720-8f0d-dirty
[fclaw] CPP                      mpicxx -E
[fclaw] CPPFLAGS                 
[fclaw] F77                      mpif77
[fclaw] FFLAGS                   -g -O0
[fclaw] CC                       mpicxx
[fclaw] CFLAGS                   -g -Wall -O0
[fclaw] CXX                      mpicxx
[fclaw] CXXFLAGS                 -g -O0 -Wall
[fclaw] LDFLAGS  [...]<jupyter_text>---Create PNG files for web-browser viewing, or animation.<jupyter_code>%run make_plots.py<jupyter_output>Executed setplot successfully
Will plot 33 frames numbered: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32]
Will make 2 figure(s) for each frame, numbered:  [0, 1]

-----------------------------------


Creating html pages for figures...

Directory '/Users/calhoun/projects/ForestClaw/code/forestclaw/applications/clawpack/advection/2d/filament/_plots' 
    already exists, files may be overwritten 
Now making png files for all figures...<jupyter_text>---View PNG files in browser, using URL above, or create an animation of all PNG files, using code below.<jupyter_code>%pylab inline
import glob
from matplotlib import image
from clawpack.visclaw.JSAnimation import IPython_display
from matplotlib import animation

figno = 0
fname = '_plots/*fig' + str(figno) + '.png'
filenames=sorted(glob.glob(fname))

fig = plt.figure()
im = plt.imshow(image.imread(filenames[0]))
def init():
    im.set_data(image.imread(filenames[0]))
    return im,

def animate(i):
    image_i=image.imread(filenames[i])
    im.set_data(image_i)
    return im,

animation.FuncAnimation(fig, animate, init_func=init,
                              frames=len(filenames), interval=500, blit=True)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1189710610932476, 'fraction_numerical': 0.03894247945694891, 'mean_word_length': 2.2444959443800694, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '586717', 'license': 'BSD-2-Clause', 'n_tokens_mistral': 1062, 'n_tokens_neox': 944, 'n_words': 272, 'path': 'applications/clawpack/advection/2d/filament/filament.ipynb', 'repo_name': 'mjberger/forestclaw', 'size': '2799'}