Trouble inspecting Teuchos::SerialDenseMatrix in gdb
Created by: jeff788
@trilinos/teuchos @bartlettroscoe
Is there a good way to inspect a Teuchos::SerialDenseMatrix in gdb? I'm having an issue with an LU factorization with LAPACK on a 6x6 SerialDenseMatrix "A", and I'm trying to diagnose the problem by inspecting the input matrix. When I try to inspect any elements of the matrix this is what happens:
(gdb) p A $30 = {Teuchos::CompObject = { vptr.CompObject = 0x7ffff756e708 <vtable for Teuchos::SerialDenseMatrix<int, double>+16>, flopCounter = 0x0}, Teuchos::Object = { vptr.Object = 0x7ffff756e730 <vtable for Teuchos::SerialDenseMatrix<int, double>+56>, static tracebackMode = -1, label = ""}, <Teuchos::BLAS<int, double>> = { vptr.BLAS = 0x7ffff756e770 <vtable for Teuchos::SerialDenseMatrix<int, double>+120>}, numRows = 6, numCols_ = 6, stride_ = 6, valuesCopied_ = true, values_ = 0x81fa9d70} (gdb) p A(0,0) Invalid data type for function to be called. (gdb) p A.values() ./mesh_transfer.sh: line 2: 1692 Segmentation fault gdb /home/burg137/Projects/FY2018/NRAP/E4D/e4d_tools/MeshTransfer/bin/dream2tetgen
I also get a Segmentation fault if I try to print out the size of an ArrayRCP with ArrayRCP::size(), while I can inspect individual elements in the ArrayRCP with the [] accessor.
Thanks,
Jeff