Skip to content

About

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

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages