Skip to content

mmcgurn/p4pdes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

p4pdes

PETSc for Partial Differential Equations is a new book on using PETSc to solve partial differential equations by modern numerical methods. It can be ordered from SIAM Press:

image of front cover

This repository contains the C and Python example programs upon which the book is based. They will remain here for the long term, and be maintained.

C examples

To compile and run the C examples, for Chapters 1 through 12, see README.md in the c/ directory.

Python/Firedrake examples

Chapters 13 and 14 use Firedrake, a Python finite element library based on PETSc, and petsc4py in particular. See README.md in the python/ directory to run these examples.

About

C and Python examples from my book on using PETSc to solve PDEs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 63.7%
  • Python 16.2%
  • Shell 10.5%
  • Makefile 5.6%
  • MATLAB 3.2%
  • GLSL 0.4%
  • Other 0.4%