CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   REEF3D (https://www.cfd-online.com/Forums/reef3d/)
-   -   An error occurred running the code (https://www.cfd-online.com/Forums/reef3d/241493-error-occurred-running-code.html)

changshuqi March 2, 2022 05:54

An error occurred running the code
 
Sorry to bother you, I have some problems in ubuntu terminal.
I can't do the last step.
When I enter the code, it appears as follows:

changshuqi@LAPTOP-VF066KCK:~/test1$ mpirun -n 4 REEF3D
--------------------------------------------------------------------------
WARNING: Linux kernel CMA support was requested via the
btl_vader_single_copy_mechanism MCA variable, but CMA support is
not available due to restrictive ptrace settings.

The vader shared memory BTL will fall back on another single-copy
mechanism if one is available. This may result in lower performance.

Local host: LAPTOP-VF066KCK
--------------------------------------------------------------------------

REEF3D (c) 2008-2021 Hans Bihs

:: Open-Source Hydrodynamics

v_211130

read ctrl

REEF3D::CFD

[LAPTOP-VF066KCK:00101] 3 more processes have sent help message help-btl-vader.txt / cma-permission-denied
[LAPTOP-VF066KCK:00101] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages
initialize fdm
starting ini
creating objects
[LAPTOP-VF066KCK:00105] *** Process received signal ***
[LAPTOP-VF066KCK:00105] Signal: Segmentation fault (11)
[LAPTOP-VF066KCK:00105] Signal code: Invalid permissions (2)
[LAPTOP-VF066KCK:00105] Failing at address: 0x7f9c72de1000
[LAPTOP-VF066KCK:00106] *** Process received signal ***
[LAPTOP-VF066KCK:00106] Signal: Segmentation fault (11)
[LAPTOP-VF066KCK:00106] Signal code: Invalid permissions (2)
[LAPTOP-VF066KCK:00106] Failing at address: 0x7f82dacff000
[LAPTOP-VF066KCK:00108] *** Process received signal ***
[LAPTOP-VF066KCK:00108] Signal: Segmentation fault (11)
[LAPTOP-VF066KCK:00108] Signal code: Invalid permissions (2)
[LAPTOP-VF066KCK:00108] Failing at address: 0x7f7a63c35000
[LAPTOP-VF066KCK:00106] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x46210)[0x7f847f8e6210]
[LAPTOP-VF066KCK:00106] [ 1] /lib/x86_64-linux-gnu/libc.so.6(+0x18ead1)[0x7f847fa2ead1]
[LAPTOP-VF066KCK:00106] [ 2] REEF3D(+0x4b4d78)[0x7f8480447d78]
[LAPTOP-VF066KCK:00106] [ 3] REEF3D(+0x2b83c2)[0x7f848024b3c2]
[LAPTOP-VF066KCK:00106] [ 4] REEF3D(+0x150ce2)[0x7f84800e3ce2]
[LAPTOP-VF066KCK:00106] [ 5] REEF3D(+0x5ffe8)[0x7f847fff2fe8]
[LAPTOP-VF066KCK:00106] [ 6] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f847f8c70b3]
[LAPTOP-VF066KCK:00106] [ 7] REEF3D(+0x6bb4e)[0x7f847fffeb4e]
[LAPTOP-VF066KCK:00106] *** End of error message ***
[LAPTOP-VF066KCK:00108] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x46210)[0x7f7c076c6210]
[LAPTOP-VF066KCK:00108] [ 1] /lib/x86_64-linux-gnu/libc.so.6(+0x18ead1)[0x7f7c0780ead1]
[LAPTOP-VF066KCK:00108] [ 2] REEF3D(+0x4b4d78)[0x7f7c08229d78]
[LAPTOP-VF066KCK:00108] [ 3] REEF3D(+0x2b83c2)[0x7f7c0802d3c2]
[LAPTOP-VF066KCK:00108] [ 4] REEF3D(+0x150ce2)[0x7f7c07ec5ce2]
[LAPTOP-VF066KCK:00108] [ 5] REEF3D(+0x5ffe8)[0x7f7c07dd4fe8]
[LAPTOP-VF066KCK:00108] [ 6] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f7c076a70b3]
[LAPTOP-VF066KCK:00108] [ 7] REEF3D(+0x6bb4e)[0x7f7c07de0b4e]
[LAPTOP-VF066KCK:00108] *** End of error message ***
[LAPTOP-VF066KCK:00105] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x46210)[0x7f9e17b56210]
[LAPTOP-VF066KCK:00105] [ 1] /lib/x86_64-linux-gnu/libc.so.6(+0x18ead1)[0x7f9e17c9ead1]
[LAPTOP-VF066KCK:00105] [ 2] REEF3D(+0x4b4d78)[0x7f9e186b9d78]
[LAPTOP-VF066KCK:00105] [ 3] REEF3D(+0x2b83c2)[0x7f9e184bd3c2]
[LAPTOP-VF066KCK:00105] [ 4] REEF3D(+0x150ce2)[0x7f9e18355ce2]
[LAPTOP-VF066KCK:00105] [ 5] REEF3D(+0x5ffe8)[0x7f9e18264fe8]
[LAPTOP-VF066KCK:00105] [ 6] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f9e17b370b3]
[LAPTOP-VF066KCK:00105] [ 7] REEF3D(+0x6bb4e)[0x7f9e18270b4e]
[LAPTOP-VF066KCK:00105] *** End of error message ***
[LAPTOP-VF066KCK:00107] *** Process received signal ***
[LAPTOP-VF066KCK:00107] Signal: Segmentation fault (11)
[LAPTOP-VF066KCK:00107] Signal code: Invalid permissions (2)
[LAPTOP-VF066KCK:00107] Failing at address: 0x7fcceb435000
[LAPTOP-VF066KCK:00107] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x46210)[0x7fce90e16210]
[LAPTOP-VF066KCK:00107] [ 1] /lib/x86_64-linux-gnu/libc.so.6(+0x18ead1)[0x7fce90f5ead1]
[LAPTOP-VF066KCK:00107] [ 2] REEF3D(+0x4b4d78)[0x7fce91977d78]
[LAPTOP-VF066KCK:00107] [ 3] REEF3D(+0x2b83c2)[0x7fce9177b3c2]
[LAPTOP-VF066KCK:00107] [ 4] REEF3D(+0x150ce2)[0x7fce91613ce2]
[LAPTOP-VF066KCK:00107] [ 5] REEF3D(+0x5ffe8)[0x7fce91522fe8]
[LAPTOP-VF066KCK:00107] [ 6] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7fce90df70b3]
[LAPTOP-VF066KCK:00107] [ 7] REEF3D(+0x6bb4e)[0x7fce9152eb4e]
[LAPTOP-VF066KCK:00107] *** End of error message ***
--------------------------------------------------------------------------
Primary job terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun noticed that process rank 0 with PID 0 on node LAPTOP-VF066KCK exited on signal 11 (Segmentation fault).
--------------------------------------------------------------------------

kamath March 2, 2022 11:29

Hi,
Difficult to analyse the problem without more information.
But first,
Have you run
Code:

./DiveMESH
and has it resulted in the production of files grid-00001.dat, 0002.dat etc?

Next
use the command
Code:

ll
see if reef3d has
Code:

-rwxr-xr-x
in front of it.

Finally, ensure you have the latest (and compatible) DiveMESH and REEF3D versions.

If none of the above work, please upload your input files.

changshuqi March 3, 2022 04:13

Thank you very much for the methods you provided. I checked them one by one and finally found that the problem was grid division. My computer could not support too many grids. I finally modified it and it worked. Thank you for your help. Best wishes to you!

kamath March 3, 2022 06:21

I am glad that you found the solution!
Good luck ahead


All times are GMT -4. The time now is 07:33.