[petsc-users] How to solve multiple linear systems in parallel, one on each process?
Matthew Knepley
knepley at gmail.com
Mon Dec 3 08:10:59 CST 2018
On Mon, Dec 3, 2018 at 8:52 AM Klaus Burkart via petsc-users <
petsc-users at mcs.anl.gov> wrote:
> Hello,
>
> I want to solve a cfd case, after decomposition, I get a sub matrix
> allocated to each process. The example below shows how the data is
> allocated to the processes (the sample data includes only the lower parts
> of the matrices). Row and column addresses are local.
>
> What petsc program setup/concept can be used to solve multiple linear
> systems in parallel, one on each process?
>
Create the Mat and KSP with PETSC_COMM_SELF.
Thanks,
Matt
> Klaus
>
> Sample raw data:
>
> process matrix section value row column
> 0 lower 1,80E-05 1 0
> 0 lower 1,80E-05 5 0
> 0 lower 1,96E-05 2 1
> 0 lower 2,20E-05 6 1
> 0 lower 1,96E-05 3 2
> 0 lower 2,20E-05 7 2
> 0 lower 1,96E-05 4 3
> 0 lower 2,20E-05 8 3
> 0 lower 2,20E-05 9 4
> 0 lower 2,20E-05 6 5
> 0 lower 1,96E-05 10 5
> 0 lower 2,44E-05 7 6
> 0 lower 2,44E-05 11 6
> 0 lower 2,44E-05 8 7
> 0 lower 2,44E-05 12 7
> 0 lower 2,44E-05 9 8
> 0 lower 2,44E-05 13 8
> 0 lower 2,44E-05 14 9
> 0 lower 2,20E-05 11 10
> 0 lower 1,96E-05 15 10
> 0 lower 2,44E-05 12 11
> 0 lower 2,44E-05 16 11
> 0 lower 2,44E-05 13 12
> 0 lower 2,44E-05 17 12
> 0 lower 2,44E-05 14 13
> 0 lower 2,44E-05 18 13
> 0 lower 2,44E-05 19 14
> 0 lower 2,20E-05 16 15
> 0 lower 1,96E-05 20 15
> 0 lower 2,44E-05 17 16
> 0 lower 2,44E-05 21 16
> 0 lower 2,44E-05 18 17
> 0 lower 2,44E-05 22 17
> 0 lower 2,44E-05 19 18
> 0 lower 2,44E-05 23 18
> 0 lower 2,44E-05 24 19
> 0 lower 2,20E-05 21 20
> 0 lower 2,44E-05 22 21
> 0 lower 2,44E-05 23 22
> 0 lower 2,44E-05 24 23
> 1 lower 2,20E-05 1 0
> 1 lower 1,96E-05 5 0
> 1 lower 2,44E-05 2 1
> 1 lower 2,44E-05 6 1
> 1 lower 2,44E-05 3 2
> 1 lower 2,44E-05 7 2
> 1 lower 2,44E-05 4 3
> 1 lower 2,44E-05 8 3
> 1 lower 2,44E-05 9 4
> 1 lower 2,20E-05 6 5
> 1 lower 1,96E-05 10 5
> 1 lower 2,44E-05 7 6
> 1 lower 2,44E-05 11 6
> 1 lower 2,44E-05 8 7
> 1 lower 2,44E-05 12 7
> 1 lower 2,44E-05 9 8
> 1 lower 2,44E-05 13 8
> 1 lower 2,44E-05 14 9
> 1 lower 2,20E-05 11 10
> 1 lower 1,96E-05 15 10
> 1 lower 2,44E-05 12 11
> 1 lower 2,44E-05 16 11
> 1 lower 2,44E-05 13 12
> 1 lower 2,44E-05 17 12
> 1 lower 2,44E-05 14 13
> 1 lower 2,44E-05 18 13
> 1 lower 2,44E-05 19 14
> 1 lower 2,20E-05 16 15
> 1 lower 1,80E-05 20 15
> 1 lower 2,44E-05 17 16
> 1 lower 2,20E-05 21 16
> 1 lower 2,44E-05 18 17
> 1 lower 2,20E-05 22 17
> 1 lower 2,44E-05 19 18
> 1 lower 2,20E-05 23 18
> 1 lower 2,20E-05 24 19
> 1 lower 1,80E-05 21 20
> 1 lower 1,96E-05 22 21
> 1 lower 1,96E-05 23 22
> 1 lower 1,96E-05 24 23
> 2 lower 1,96E-05 1 0
> 2 lower 2,20E-05 5 0
> 2 lower 1,96E-05 2 1
> 2 lower 2,20E-05 6 1
> 2 lower 1,96E-05 3 2
> 2 lower 2,20E-05 7 2
> 2 lower 1,80E-05 4 3
> 2 lower 2,20E-05 8 3
> 2 lower 1,80E-05 9 4
> 2 lower 2,44E-05 6 5
> 2 lower 2,44E-05 10 5
> 2 lower 2,44E-05 7 6
> 2 lower 2,44E-05 11 6
> 2 lower 2,44E-05 8 7
> 2 lower 2,44E-05 12 7
> 2 lower 2,20E-05 9 8
> 2 lower 2,44E-05 13 8
> 2 lower 1,96E-05 14 9
> 2 lower 2,44E-05 11 10
> 2 lower 2,44E-05 15 10
> 2 lower 2,44E-05 12 11
> 2 lower 2,44E-05 16 11
> 2 lower 2,44E-05 13 12
> 2 lower 2,44E-05 17 12
> 2 lower 2,20E-05 14 13
> 2 lower 2,44E-05 18 13
> 2 lower 1,96E-05 19 14
> 2 lower 2,44E-05 16 15
> 2 lower 2,44E-05 20 15
> 2 lower 2,44E-05 17 16
> 2 lower 2,44E-05 21 16
> 2 lower 2,44E-05 18 17
> 2 lower 2,44E-05 22 17
> 2 lower 2,20E-05 19 18
> 2 lower 2,44E-05 23 18
> 2 lower 1,96E-05 24 19
> 2 lower 2,44E-05 21 20
> 2 lower 2,44E-05 22 21
> 2 lower 2,44E-05 23 22
> 2 lower 2,20E-05 24 23
> 3 lower 2,44E-05 1 0
> 3 lower 2,44E-05 5 0
> 3 lower 2,44E-05 2 1
> 3 lower 2,44E-05 6 1
> 3 lower 2,44E-05 3 2
> 3 lower 2,44E-05 7 2
> 3 lower 2,20E-05 4 3
> 3 lower 2,44E-05 8 3
> 3 lower 1,96E-05 9 4
> 3 lower 2,44E-05 6 5
> 3 lower 2,44E-05 10 5
> 3 lower 2,44E-05 7 6
> 3 lower 2,44E-05 11 6
> 3 lower 2,44E-05 8 7
> 3 lower 2,44E-05 12 7
> 3 lower 2,20E-05 9 8
> 3 lower 2,44E-05 13 8
> 3 lower 1,96E-05 14 9
> 3 lower 2,44E-05 11 10
> 3 lower 2,44E-05 15 10
> 3 lower 2,44E-05 12 11
> 3 lower 2,44E-05 16 11
> 3 lower 2,44E-05 13 12
> 3 lower 2,44E-05 17 12
> 3 lower 2,20E-05 14 13
> 3 lower 2,44E-05 18 13
> 3 lower 1,96E-05 19 14
> 3 lower 2,44E-05 16 15
> 3 lower 2,20E-05 20 15
> 3 lower 2,44E-05 17 16
> 3 lower 2,20E-05 21 16
> 3 lower 2,44E-05 18 17
> 3 lower 2,20E-05 22 17
> 3 lower 2,20E-05 19 18
> 3 lower 2,20E-05 23 18
> 3 lower 1,80E-05 24 19
> 3 lower 1,96E-05 21 20
> 3 lower 1,96E-05 22 21
> 3 lower 1,96E-05 23 22
> 3 lower 1,80E-05 24 23
>
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20181203/ca2182fc/attachment.html>
More information about the petsc-users
mailing list