ddemidov / amgcl

C++ library for solving large sparse linear systems with algebraic multigrid method
http://amgcl.readthedocs.org/
MIT License
726 stars 111 forks source link

MPI rebuild example #266

Open neoshihchaokao opened 11 months ago

neoshihchaokao commented 11 months ago

I am trying to use the MPI rebuild technique which is provided in ver 1.4.3, but I did not find the suitable example I can refer. Does someone can provide a suitable example I can refer? Thanks a lot

ddemidov commented 11 months ago

Hello, here is an example:

https://gist.github.com/ddemidov/3292c6fea940c785dc8b43461846ae45

neoshihchaokao commented 11 months ago

Dear Denis, Thanks for your reply. However, I still encounter the runtime issue and need your help. Since I need to solve the linear system with a lot of RHS vectors and the shared_ptr given below is used to perform the setup phase once in AMGCL 789 123

According to the example you provide, I modify my code as follows: 456

However, the above MPI rebuild function always fails. Is there any idea to fix it ?

ddemidov commented 11 months ago

Hi, 42ee9da2057153b1aef734e8e462c846a33aa805 should fix this.

neoshihchaokao commented 11 months ago

Hello~Denis, this fixing does not work for me.

ddemidov commented 11 months ago

Hi, can you provide a minimal example that reproduces the issue?