Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version of ComputeCtAB not involving HypreParMatrix #198

Open
gokhalen opened this issue Mar 21, 2023 · 1 comment
Open

version of ComputeCtAB not involving HypreParMatrix #198

gokhalen opened this issue Mar 21, 2023 · 1 comment

Comments

@gokhalen
Copy link

Is there a version of ComputeCtAB in which A is a serial matrix, perhaps just a mfem matrix? I'm asking this because, if such a routine were available, I would be able to write my code in serial, reducing complexity.

@dylan-copeland
Copy link
Collaborator

We do not have such a version, but it is easy to construct a HypreParMatrix. Since libROM builds with a parallel build of MFEM, "serial" means 1 MPI rank. So even in the serial case you can use a HypreParMatrix. In MFEM, the simpler, serial class for a sparse matrix is SparseMatrix. If you prefer to compute a SparseMatrix on 1 MPI rank, then you can use that SparseMatrix to construct a HypreParMatrix, with row/col starts being 0:

HypreParMatrix(MPI_Comm comm, HYPRE_BigInt *row_starts, HYPRE_BigInt *col_starts, SparseMatrix *a);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants