CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

THREAD_T0 in parallel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 27, 2016, 10:33
Default THREAD_T0 in parallel
  #1
New Member
 
Join Date: Aug 2012
Posts: 5
Rep Power: 13
gewuzhizhi is on a distinguished road
hi,everyone. I am now using THREAD_T0 to access the adjacent face of a interior face. while it does not work when the number of cpu over 8.does anybody know why?
gewuzhizhi is offline   Reply With Quote

Old   March 28, 2016, 09:45
Default
  #2
New Member
 
Join Date: Aug 2012
Posts: 5
Rep Power: 13
gewuzhizhi is on a distinguished road
the problem now is solved,it is caused by the code itself, mainly because of the message passing between node 0 and the remain nodes
gewuzhizhi is offline   Reply With Quote

Old   April 15, 2020, 02:04
Default
  #3
New Member
 
Jerónimo Guarco
Join Date: Aug 2018
Posts: 2
Rep Power: 0
jeronimoguarco is on a distinguished road
Hello. Would you care to ellaborate how exactly you solved this? Thank you very much
jeronimoguarco is offline   Reply With Quote

Old   April 15, 2020, 14:59
Default Thread
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
All the functions that access anything related to mesh, such as, THREAD_T0, can only be accessed by nodes and not by host when Fluent runs in parallel. Since new versions always run in parallel, even when Serial is selected at the launcher, you need to use this and other similar functions or macros within either

#if !RP_HOST
#endif
or

#if RP_NODE
#endif

The precompiler directives ensure that there is no segmentation violation.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   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
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 04:18
Explicitly filtered LES saeedi Main CFD Forum 16 October 14, 2015 11:58
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 18:45
simpleFoam in parallel issue plucas OpenFOAM Running, Solving & CFD 3 July 17, 2013 11:30
parallel Grief: BoundaryFields ok in single CPU but NOT in Parallel JR22 OpenFOAM Running, Solving & CFD 2 April 19, 2013 16:49


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