petsc4py-tutorial
petsc4py-tutorial copied to clipboard
Simple walkthrough tutorial for getting started with petsc4py
Purpose
A set of walk-throughs to gradually learn how to use PETSc via the petsc4py package.
Contents
- vec_serial.py - work with vectors on a single process.
- mat_serial.py - work with matrices on a single process.
- ksp_serial.py - solve a linear system on a single process.
- da_serial.py - work with distributed arrays on a single process.
- da_maxwell_serial.py - solving maxwell's equations.
Current Issues
- Implement a 2D E&M solver (that will work well with both modes).
Issues for Later
- Remove "long way" comments in serial codes.
- Do something with the maxwell 3D code.