Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 398 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 398 Bytes

PETSc to Matrix Market

The script operates on the plain text output of -ksp_view_mat. It's been tested on MOOSE's console output, but should work with any application using PETSc as its solver.

Usage

Given a file Output.txt including the output of -ksp_view_mat, the converted matrix can be saved in Matrix.mtx with:

python PETScToMatrixMarket.py Output.txt > Matrix.mtx