Skip to content

MSJavaScript/petsc4py-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

petsc4py-examples

Some examples for petsc4py. These examples are from the book: PETSc for Partial Differential Equations. I convert some C codes in this book to the python version.

To run the python code, you should install petsc. You can install it by conda

conda -c conda-forge install petsc petsc4py mpi4py matplotlib 

run the code by

mpiexec -np 4 python3 test_heat.py

The correspondin C codes are also given. You can compile the C code by the makefile...

About

Some examples for petsc4py

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published