On Thu, Dec 3, 2015 at 2:50 PM, Junchao Zhang <junchao.zh...@gmail.com> wrote:
> Hello, > I am debugging a libmesh example code to learn libmesh. Is there a > method to print out the matrix and the vector, or even visualize them? > One thing I've used in the past is SparseMatrix::print_matlab(). You can then use the built-in sparse matrix viewer in Matlab/Octave to view the results. If you're using PETSc, then you might want to play around with "-mat_view draw" which can open an X window showing the sparsity structure. MatView docs: http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatView.html -- John ------------------------------------------------------------------------------ Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users