Parallelsolution when not all processes are active

Clearly defined bug reports and their fixes
Post Reply
Franz Pichler
Posts: 196
Joined: 29 Sep 2011, 12:25
Antispam: Yes

Parallelsolution when not all processes are active

Post by Franz Pichler »

Hello,

in the situation where a parallel run is set up so that not every partition is active the solver crashes for solvers that call the continousnumbering function of sparitersolver.
(tried with HYPRE;MUMPS).

WHern i try it with the elmer solvers it at least goes into solution preocess. But they are not really a choice for me right now .

the error looks like this:

Code: Select all

SParIterSolver: Hypre: CG
SParIterSolver: Preconditioner: boomerAMG
HYPRE Setup

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
*** glibc detected *** ElmerSolver_mpi: double free or corruption (out): 0x00000000017d4bf0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x76d76)[0x7f3d46a41d76]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7f3d46a46aac]
/usr/lib/libelmersolver-7.0.so(__sparitersolve_MOD_continuousnumbering+0x1c83)[0x7f3d47a0e34d]
/usr/lib/libelmersolver-7.0.so(__sparitersolve_MOD_sparitersolver+0x123f)[0x7f3d47a0aa50]
/usr/lib/libelmersolver-7.0.so(__parallelutils_MOD_paralleliter+0x168)[0x7f3d47a6bbd2]
/usr/lib/libelmersolver-7.0.so(__solverutils_MOD_solvelinearsystem+0x1484)[0x7f3d478facd8]
/usr/lib/libelmersolver-7.0.so(__solverutils_MOD_solvesystem+0x1487)[0x7f3d478f8899]
/usr/lib/libelmersolver-7.0.so(__defutils_MOD_defaultsolve+0x5c1)[0x7f3d47a996b3]
./CoupledDiffusion.so(coupleddiffusion_+0xe7a)[0x7f3d4009139c]
/usr/lib/libelmersolver-7.0.so(+0x18d898)[0x7f3d478c5898]
/usr/lib/libelmersolver-7.0.so(execsolver_+0x3e)[0x7f3d478c58d9]
/usr/lib/libelmersolver-7.0.so(__mainutils_MOD_singlesolver+0xced)[0x7f3d479325af]
/usr/lib/libelmersolver-7.0.so(__mainutils_MOD_solveractivate+0xb95)[0x7f3d47930f09]
/usr/lib/libelmersolver-7.0.so(+0x208aee)[0x7f3d47940aee]
/usr/lib/libelmersolver-7.0.so(__mainutils_MOD_solveequations+0x2184)[0x7f3d479432f2]
/usr/lib/libelmersolver-7.0.so(+0x3f7d4b)[0x7f3d47b2fd4b]
/usr/lib/libelmersolver-7.0.so(elmersolver_+0x25ae)[0x7f3d47b294ce]
ElmerSolver_mpi[0x4010ee]
ElmerSolver_mpi[0x40140f]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd)[0x7f3d469e9ead]
ElmerSolver_mpi[0x400d49]
Could someone please check this by also setting up a simple case where two solvers are active and one of them is only working on a part of the domain.
And the partition should be such that, not every partition has active elements in this smaller domain.

i would highly appreciated it

best regards
Franz
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Parallelsolution when not all processes are active

Post by raback »

Hi Franz

I think Juha may have accidentally stumbled to the same bug last week and fixed it. So I would recommend trying svn update.

-Peter
Franz Pichler
Posts: 196
Joined: 29 Sep 2011, 12:25
Antispam: Yes

Re: Parallelsolution when not all processes are active

Post by Franz Pichler »

so cool!!!

thank you,
works really good now!!

except for the little problem with the new reultoutputsolver(viewtopic.php?f=9&t=3035&p=9457&hilit=f ... nent#p9457)
i think i have narrowed that one down a bit more, i will reply in the topic

THanks again for the bug fix!!!
Post Reply