|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Join Date: Feb 2021
Location: France
Posts: 13
Rep Power: 6 ![]() |
Hello, everyone!
I try to do a simulation with CFX and using a user Fortran subroutine in Linux machine. When I compile and lance CFX solver, I obtain this error . my subroutine integral a function from 0 => +infinity. When I use integral from 0.2 => +infinity it works normally but when I integrate from 0 or 0.1 => +infinity it gives me this error. (I tested my integral in online compiler without CFX and it works normally) Parallel run: Received message from slave ----------------------------------------- Slave partition : 14 Slave routine : ErrAction Master location : Message Handler Message label : 001100279 Message follows below - : +--------------------------------------------------------------------+ | ERROR #001100279 has occurred in subroutine ErrAction. | | Message: | | Signal caught: Segmentation violation | | | | | | | | | | | +--------------------------------------------------------------------+ Parallel run: Received message from slave ----------------------------------------- Slave partition : 14 Slave routine : ErrAction Master location : Message Handler Message label : 001100279 Message follows below - : +--------------------------------------------------------------------+ | ERROR #001100279 has occurred in subroutine ErrAction. | | Message: | | Stopped in routine FPX: SIG_HANDLER | | | | | | | | | | | +--------------------------------------------------------------------+ +--------------------------------------------------------------------+ | ERROR #001100279 has occurred in subroutine MESG_RETRIEVE. | | Message: | | Stopping the run due to error(s) reported above | | | | | | | | | | | +--------------------------------------------------------------------+ +--------------------------------------------------------------------+ | An error has occurred in cfx5solve: | | | | The ANSYS CFX solver exited with return code 1. No results file | | has been created. | +--------------------------------------------------------------------+ can anyone help me, please?
|
|
|
|
|
|
|
|
|
#2 |
|
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 18,001
Rep Power: 146 ![]() ![]() ![]() ![]() |
It looks like your function is not working as you expect. You need to do some basic debugging on your routine, get it to print out values from the routine and check they are what you expect.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jun 2009
Posts: 1,927
Rep Power: 34 ![]() |
From the output, it seems you are running in parallel, correct?
I will follow Glenn's suggestion of debugging your routine first in serial mode, and once it is working to your expectations try it in parallel mode, and repeat the debugging if needed.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
|
|
|
|
|
|
|
#4 |
|
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,994
Rep Power: 29 ![]() |
Your routine seems to work fine if you integrate starting from 0.2, but not from 0.
Then everything looks fine, except for the function that you integrate. So the question is: how does your function look like? |
|
|
|
|
|
|
|
|
#5 |
|
New Member
Join Date: Feb 2021
Location: France
Posts: 13
Rep Power: 6 ![]() |
Thanks Glenn for your reply!
I have checked that the values are good if I integrate from 0.2 => infinity (I compared them with a python code and with an online compiler Fortran). |
|
|
|
|
|
|
|
|
#6 | |
|
New Member
Join Date: Feb 2021
Location: France
Posts: 13
Rep Power: 6 ![]() |
Quote:
I tested in serial mode but the same problem appears. |
||
|
|
|
||
|
|
|
#7 | |
|
New Member
Join Date: Feb 2021
Location: France
Posts: 13
Rep Power: 6 ![]() |
Quote:
My function is Gaussian. See the picture below. |
||
|
|
|
||
|
|
|
#8 |
|
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,994
Rep Power: 29 ![]() |
Nice picture, but it doesn't explain a lot.
What functions in CFX are present on your X and Y-axis? |
|
|
|
|
|
|
|
|
#9 |
|
New Member
Join Date: Feb 2021
Location: France
Posts: 13
Rep Power: 6 ![]() |
Hello!
Thanks all, we find the problem, it was in the cluster (Linux machine). When we try the integral in windows machine, it works normally. |
|
|
|
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Jun 2009
Posts: 1,927
Rep Power: 34 ![]() |
Glad to hear you are getting results.
However, it is a very bad sign that it works on a Windows cluster and not on the Linux cluster. From experience, it is a sign that something is wrong with the code and the different initialization paradigms between Windows and Linux can produce a false positive that the code is working. Just beware that something else is lurking in those simulations.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. Last edited by Opaque; March 2, 2021 at 11:54. Reason: typo |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| signal 11, segmentation violation, DISPLAY variable | sakalido | CFX | 1 | December 20, 2013 18:03 |
| Segmentation violation error...why??? | be89 | Fluent UDF and Scheme Programming | 0 | September 6, 2011 17:01 |
| A fatal signal (segmentation violation) | sutthinan | Fluent UDF and Scheme Programming | 6 | March 16, 2011 19:35 |
| SEGMENTATION VIOLATION | kROZ | FLUENT | 1 | May 4, 2006 10:12 |
| SEGMENTATION VIOLATION | Arif | FLUENT | 3 | May 27, 2003 09:24 |