Skip to content

A python script to convert PETSc matrices in plain text to the Matrix Market format

License

Notifications You must be signed in to change notification settings

nmnobre/PETScToMatrixMarket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A python script to convert PETSc matrices in plain text to the Matrix Market format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages