This directory contains the C programs which support the book PETSc for PDEs.
- I will maintain and support these examples in the long term and update and tag them with PETSc versions.
Please follow the instructions at petsc.org/release/install/.
Notes:
- My book does not contain PETSc installation instructions, though it has minimal advice. Maintaining installation information is the job of PETSc developers, not me. (Thank goodness.)
- CONFIGS.md contains some of the
configure
commands which work on the author's machines. These are minimal installation suggestions. - My book does not help the reader with debugging C programs.
Do this to build and run the program e.c
in Chapter 1:
$ cd ch1
$ make e
$ ./e
$ mpiexec -n 20 ./e
$ make test # in either c/ or c/ch*/
$ make distclean # in either c/ or c/ch*/