CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

thread pointer comparison crash in Fluent UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 31, 2008, 17:40
Default thread pointer comparison crash in Fluent UDF
  #1
Miriam
Guest
 
Posts: n/a
Dear all,

I wrote a UDF to be used in Fluent 6.3, it did not give any problem during the compilation process, but as soon as the simulation started it stopped giving the following error:

iter continuity x-velocity y-velocity z-velocity

uds-0 time/iter

6016 4.7173e-06 1.1117e-07 1.2179e-06 1.8832e-07 0.0000e+00 0:00:00 100

================================================== ============================ Stack backtrace generated for process id 11798 on signal 1
: Please include this information with any bug report you file on this issue! ================================================== ============================

/home/miriam/bin/Fluent.Inc/fluent6.3.26/lnx86/3ddp/fluent.6.3.26[0x8892a97] /home/miriam/bin/Fluent.Inc/fluent6.3.26/lnx86/3ddp/fluent.6.3.26[0x889292a] [0xffffe420] /home/miriam/bin/Fluent.Inc/fluent6.3.26/lnx86/3ddp/fluent.6.3.26[0x8180cd9] /home/miriam/bin/Fluent.Inc/fluent6.3.26/lnx86/3ddp/fluent.6.3.26[0x81d22c5] /home/miriam/bin/Fluent.Inc/fluent6.3.26/lnx86/3ddp/fluent.6.3.26(eval+0xb6f)[0x88c6286] /home/miriam/bin/Fluent.Inc/fluent6.3.26/lnx86/3ddp/fluent.6.3.26(eval+0xb6f)[0x88c6286] /home/miriam/bin/Fluent.Inc/fluent6.3.26/lnx86/3ddp/fluent.6.3.26(eval+0xd4a)[0x88c6461] /home/miriam/bin/Fluent.Inc/fluent6.3.26/lnx86/3ddp/fluent.6.3.26(eval+0xf0b)[0x88c6622] /home/miriam/bin/Fluent.Inc/fluent6.3.26/lnx86/3ddp/fluent.6.3.26[0x88c689a] /home/miriam/bin/Fluent.Inc/fluent6.3.26/lnx86/3ddp/fluent.6.3.26(eval_errprotect+0x41)[0x88c694b] /home/miriam/bin/Fluent.Inc/fluent6.3.26/lnx86/3ddp/fluent.6.3.26(eval+0xb6f)[0x88c6286] /home/miriam/bin/Fluent.Inc/fluent6.3.26/lnx86/3ddp/fluent.6.3.26(eval+0x2f3)[0x88c5a0a] /home/miriam/bin/Fluent.Inc/fluent6.3.26/lnx86/3ddp/fluent.6.3.26(eval+0x102a)[0x88c6741] /home/miriam/bin/Fluent.Inc/fluent6.3.26/lnx86/3ddp/fluent.6.3.26(eval+0xf0b)[0x88c6622] /home/miriam/bin/Fluent.Inc/fluent6.3.26/lnx86/3ddp/fluent.6.3.26[0x88c689a]

Error: fluent.6.3.26 received a fatal signal (SEGMENTATION VIOLATION). Error Object: #f

I commented all the source code, removing the comments line by line, in order to identify the problematic instruction. The code line that causes the crash is the following one:

************************************************** ** if (C_FACE_THREAD(C0_B, T0_B, n) == Lookup_Thread(domain, ID_B))

*************************************************

In which I performed the comparison between the pointer to the thread of faces for a certain face (belonging to cell with index C0_B and thread T0_B) with a pointer to the thread of boundary faces, identified by zone number ID_B. This comparison aims at assessing whether the face of the cell belongs to the boundary corresponding to the zone number ID_B.

In C the comparison between pointers is allowed, so why in this case it creates this problem? Could please anyone help me?

Thanks a lot in advance

Miriam

  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF to record FLUENT Solver variables... mariachi Fluent UDF and Scheme Programming 11 September 24, 2019 01:07
A Problem of Fluent Interpreted UDF: parse error knight Fluent UDF and Scheme Programming 25 August 16, 2018 11:26
FLUENT UDF in Intepreting NGH Fluent UDF and Scheme Programming 3 July 19, 2011 06:41
the udf has been hooked to the fluent successfully,but it does not work! hugeforest Fluent UDF and Scheme Programming 1 July 8, 2011 05:31
UDF to record FLUENT solver variables... mariachi FLUENT 1 February 3, 2010 23:18


All times are GMT -4. The time now is 04:34.