[petsc-users] solving sub problems serially
Jed Brown
jedbrown at mcs.anl.gov
Sun Mar 10 13:42:58 CDT 2013
On Sun, Mar 10, 2013 at 1:41 PM, Gideon Simpson <gideon.simpson at gmail.com>wrote:
> I'm working on a monte carlo problem where each node needs the same
> solution of a small scale eigenvalue problem. I have in mind to use slepc
> to to use to get the solution, since it has all the necessary algorithms,
> but I am trying to understand how to get my code to have that problem
> solved locally, serially, within the context of a larger parallel problem.
> Is it sufficient to just declare the matrix associated with the eigenvalue
> problem to be of sequential type?
This is why every constructor takes a communicator. Just create those
subproblems on PETSC_COMM_SELF.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130310/538ab1d7/attachment.html>
More information about the petsc-users
mailing list