Wednesday, August 7, 2013



Matrix Market File format & PetSc Bin


If you have developed a CFD solver then most likely you have generated a sparse linear system which needs to be solved one way or the other. Apart from the standard Intel or other libraries, it would be definitely advantageous to use the PetSc library. PetSc has huge capabilities varying from linear solvers, pre-conditioners, eigenvalue analysis, to the CPU / GPU implementations.

Getting to know PetSc will take sometime but it is greatly beneficial to employ matrix and vector operations. The only requirement now is to convert the system we have to PetSc known format. This is good for initial testing only. Here are two routines developed by P.Kumar (PetSc) to convert the Matrix in COO format or Matrix Market file format to PetSc Matrix bin format, and the other to convert vectors.

MatrixMarket_to_PetScBin.c

VectorMarket_to_PetScBin.c

README.TXT

Subscribe to RSS Feed Follow me on Twitter!