-
Notifications
You must be signed in to change notification settings - Fork 23
Clawpack examples
There are over 20 Clawpack examples illustrating how to use ForestClaw for scalar advection on both Cartesian and mapped grids (including disks and spheres), transport equations, Euler equations, shallow water wave equations, Burgers equation and acoustics. To see the list of available examples, see the directory forestclaw/applications.
Once you have built ForestClaw, you will need to be sure the you can locate the executables from within the applications directories. To find the executables, set the following environment variable
(bash) % export FCLAW_BIN=$FCLAW/forestclaw-build/local/bin
To run the scalar advection example swirl
serial, navigate to the application directory and run the example
(bash) ~/fclaw-code (master) % cd $FCLAW/forestclaw/applications/clawpack/advection/2d/swirl (bash) ~/.../advection/2d/swirl (master) % $FCLAW_BIN/swirl
To run the swirl
example in parallel, do the following
(bash) ~/fclaw-code (master) % cd $FCLAW/forestclaw/applications/clawpack/advection/2d/swirl (bash) ~/.../advection/2d/swirl (master) % mpirun -n 4 $FCLAW_BIN/swirl
These commands will run the swirl
example, using the default options in the fclaw_options.ini
file.
ForestClaw | Copyright (c) 2012-2022 Carsten Burstedde, Donna Calhoun