19 #include "libmesh/libmesh.h" 20 #include "libmesh/libmesh_logging.h" 21 #include "libmesh/sparse_matrix.h" 28 int main(
int argc,
char ** argv)
34 (
"Usage: " << argv[0] <<
35 " inputmatrix outputmatrix");
39 LOG_CALL(
"mat.read()",
"main", mat->read(argv[1]));
41 libMesh::out <<
"Loaded " << mat->m() <<
" by " << mat->n() <<
42 " matrix " << argv[1] << std::endl;
44 LOG_CALL(
"mat.print_matlab()",
"main", mat->print_matlab(argv[2]));
The LibMeshInit class, when constructed, initializes the dependent libraries (e.g.
The libMesh namespace provides an interface to certain functionality in the library.
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.
int main(int argc, char **argv)
void init(triangulateio &t)
Initializes the fields of t to nullptr/0 as necessary.