/petsc4py-matexp

Implementation of the matrix exponential with PETSc and petsc4py.

Primary LanguagePython

This repo was forked from JesseLu's tutorial repo. I've been using it as a sort of testing area for implementation of the matrix exponential with PETSc. The python version is expm.py, and a C version is in the works.

Purpose

A set of walk-throughs to gradually learn how to use PETSc via the petsc4py package.

Contents

  1. vec_serial.py - work with vectors on a single process.
  2. mat_serial.py - work with matrices on a single process.
  3. ksp_serial.py - solve a linear system on a single process.
  4. da_serial.py - work with distributed arrays on a single process.
  5. da_maxwell_serial.py - solving maxwell's equations.

Current Issues

  1. Implement a 2D E&M solver (that will work well with both modes).

Issues for Later

  1. Remove "long way" comments in serial codes.
  2. Do something with the maxwell 3D code.