11
2- GeoClaw Boussinesq solver examples
2+ GeoClaw Boussinesq solver examples (in 2D)
3+
4+ Some 1D Boussinesq solver examples are in $CLAW/geoclaw/examples/1d_classic
5+ in directories starting with bouss_
36
47The radial_flat subdirectory contains one example using the Boussinesq
58solver introduced in Clawpack v5.10.0.
@@ -13,8 +16,12 @@ which are described in the paper found at:
1316
1417Running these codes requires PETSc Version 3.20 (or later) in order to use
1518OpenMP along with MPI. Some flags have to be set as environment variables
16- or directly in the application Makefile, e.g. see the lines commented out in
17- radial_flat/Makefile.
19+ or directly in the application Makefile.
20+
21+ For more information on installing PETSc and setting these environment
22+ variables properly, see:
23+ https://www.clawpack.org/bouss2d.html
24+
1825
1926**Update:** Clawpack 5.12.0 now requires PETSc Version 3.23 (or later).
2027
@@ -24,6 +31,38 @@ variables for the bash shell.
2431A file petscMPIoptions is also required to set some PETSc parameters for the
2532iterative method used to solve the large sparse linear systems that arise at
2633each refinement level when the Boussinesq equations are solved.
27- One of the environment variables mentioned above points to this file, and a
28- sample is included in this directory.
34+ The environment variable PETSC_OPTIONS should point to the version of this
35+ file that you wish to use, see setenv.sh for an example of setting this to
36+ point to the sample petscMPIoptions file included in this directory.
37+
38+
39+ **Check:**
40+
41+ The example Makefile in
42+ $CLAW/geoclaw/examples/bouss/radial_flat/Makefile
43+ contains an option so that you can do
44+ $ make check
45+ at the command line to see how various options are set and to check that
46+ they look correct (or help debug if the code does not run).
47+ This is an enhancement of the 'make check' option added to the common
48+ Makefile for all Clawpack applications in v5.12.0, and should produce
49+ something like this:
50+
51+ ===================
52+ CLAW = /Users/rjl/git/clawpack
53+ OMP_NUM_THREADS = 6
54+ BOUSS_MPI_PROCS = 6
55+ PETSC_OPTIONS=-options_file /Users/rjl/git/clawpack/geoclaw/examples/bouss/petscMPIoptions
56+ PETSC_DIR = /Users/rjl/git/Clones/petsc
57+ PETSC_ARCH = arch-darwin-c-opt
58+ CLAW_MPIEXEC = mpiexec
59+ RUNEXE = mpiexec -n 6
60+ EXE = /Users/rjl/git/clawpack/geoclaw/examples/bouss/radial_flat/xgeoclaw
61+ CLAW_MPIFC = mpif90
62+ FC = mpif90
63+ FFLAGS = -O2 -fopenmp -DHAVE_PETSC -ffree-line-length-none
64+ LFLAGS = -L/Users/rjl/git/Clones/petsc/arch-darwin-c-opt/lib -lpetsc -fopenmp
65+ OUTDIR = _output
66+ PLOTDIR = _plots
67+ ===================
2968
0 commit comments