From: John Peterson <jwpeterson@gm...>  20110906 14:54:43

On Tue, Sep 6, 2011 at 3:14 AM, Martin Hess <hessm@...> wrote: > > Hello, > > which matrix formats does libmesh export and import? > I am thinking about formats like MatrixMarket, FEniCS *.xml or Matlab *.mat. We don't currently have any interfaces for reading matrices directly (that I know of). Some people have done the converse of what you propose in the past, i.e. using libmesh to generate matrices and then processing them elsewhere... The "reading values" part would not be too difficult to implement: a potential interface would be a SparseMatrix member function taking three arrays representing (row, column, value) triplets. We've actually been discussing adding an interface like this recently, I'm not sure what the current status of that code is but it might be available soon. > My background is that I want to use Reduced Basis functionality, on problems resulting > from electromagnetics. So I am using an external solver for generating system matrices > with nedelec and RTelements, and would like to import the matrices to libmesh, to do > parametric model order reduction via reduced basis. A trickier part might be using the SparseMatrix/LinearSolver stuff without an underlying mesh and finite element discretization. Have you tried doing this (using dummy matrix values) yet? Might be a good place to get started.  John 