Error executing GridRefinement2D

Hello everyone!

I’m a novice Palabos user and i’m trying to assemble my own code to run some 2D cases. I am interested in using the grid refinement tool that is included in examples/showCases/gridRefinement2D, and i want to run this example in order to understand the structure of this code in a better way.

I can compile the example with no problems, but when i try to execute the code the following error is given through the console:

[mf4:05325] *** Process received signal ***
[mf4:05325] Signal: Segmentation fault (11)
[mf4:05325] Signal code: Address not mapped (1)
[mf4:05325] Failing at address: (nil)
[mf4:05325] [ 0] /lib/ [0x7fd98f9bbff0]
[mf4:05325] [ 1] /lib/ [0x7fd98f682702]
[mf4:05325] [ 2] ./dipole(main+0xb9) [0x4a7f49]
[mf4:05325] [ 3] /lib/ [0x7fd98f669c8d]
[mf4:05325] [ 4] ./dipole() [0x49f439]
[mf4:05325] *** End of error message ***
Segmentation fault

I tried to run the example both in parallel and serial, but the error remains.
I dont know where this issue could came from, because i changed nothing on the base example.

How could i solve this problem? Thank you very much!


Dear Sergio,

to execute the code you need to give the resolution as a command-line argument. So, to execute with, say 4 processes and resolution N = 50, you need:

mpiexec -np 4 ./dipole 50

An appropriate diagnostic message has been added to this example, and it will be included in the next Palabos release.


Yes!,that was the error. The code works properly now =)

Thank you very much!