29{
31
32 if (argc != 3)
33 libmesh_error_msg
34 ("Usage: " << argv[0] <<
35 " inputmatrix outputmatrix");
36
38
39 LOG_CALL("mat.read()", "main", mat->read(argv[1]));
40
41 libMesh::out <<
"Loaded " << mat->m() <<
" by " << mat->n() <<
42 " matrix " << argv[1] << std::endl;
43
44 LOG_CALL("mat.print_matlab()", "main", mat->print_matlab(argv[2]));
45
47
48 return 0;
49}
The LibMeshInit class, when constructed, initializes the dependent libraries (e.g.
static std::unique_ptr< SparseMatrix< T > > build(const Parallel::Communicator &comm, const SolverPackage solver_package=libMesh::default_solver_package(), const MatrixBuildType matrix_build_type=MatrixBuildType::AUTOMATIC)
Builds a SparseMatrix<T> using the linear solver package specified by solver_package.
void init(triangulateio &t)
Initializes the fields of t to nullptr/0 as necessary.