# How to solve multiple problems in parallel (not domain decomposition)

**URL:** <https://community.freefem.org/t/how-to-solve-multiple-problems-in-parallel-not-domain-decomposition/1767>\
**Category:** General Discussion\
**Created:** [May 22, 2022, 8:57am UTC](https://community.freefem.org/t/how-to-solve-multiple-problems-in-parallel-not-domain-decomposition/1767 "2022-05-22T08:57:58Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![Jade](https://avatars.discourse-cdn.com/v4/letter/j/a8b319/32.png) [@Jade](https://community.freefem.org/u/Jade)\
**Post date:** [May 24, 2022, 8:46pm UTC](https://community.freefem.org/t/how-to-solve-multiple-problems-in-parallel-not-domain-decomposition/1767/17 "2022-05-24T20:46:19Z")

</div>

Before using PETSc, I tried the simple way: `sol = A^-1 * rhs`, where `sol` and `rhs` are 2D arrays. Then I extract each solution as `sol(:, i)`. However, the solution obtained this way are completely wrong unless `rhs` has only 1 column. For example, one solution looks like this:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/8/89c5a4738646e1a8880caf5ad64307fb41517e51.jpeg)

---

_[View the full topic](https://community.freefem.org/t/how-to-solve-multiple-problems-in-parallel-not-domain-decomposition/1767)._
