|
[Sponsors] |
why is DEFINE_ADJUST printing the message twice ? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 13, 2022, 03:05 |
why is DEFINE_ADJUST printing the message twice ?
|
#1 |
Member
Odisha
Join Date: Jan 2020
Posts: 59
Rep Power: 6 |
Hi everyone.
I've written a small DEFINE_ADJUST udf. Code:
#include "udf.h" DEFINE_ADJUST(name,d) { int k = 0; Message("k is %d \n",k); } |
|
September 13, 2022, 03:12 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
you run fluent in parallel:
1 host node and 1 computational mode (which is default)
__________________
best regards ****************************** press LIKE if this message was helpful |
|
September 13, 2022, 03:58 |
|
#3 | |
Member
Odisha
Join Date: Jan 2020
Posts: 59
Rep Power: 6 |
Quote:
Thank you for responding. To my knowledge, the current versions of FLUENT do not support serial mode. So, to make my UDF print the message only once, do I need to parallelize it ? |
||
September 15, 2022, 01:40 |
|
#4 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
yes
you may use Message0 macro to write data from node_0 only Look into ansys fluent customization manual for examples
__________________
best regards ****************************** press LIKE if this message was helpful |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
cma-permission-denied message for parallel running | choist31 | OpenFOAM Running, Solving & CFD | 4 | August 3, 2023 14:07 |
Guide: Getting Started with the CFD Online Discussion Forums | pete | Site Help, Feedback & Discussions | 8 | July 29, 2016 06:00 |
single directional message transmit in parallel model | su_junwei | OpenFOAM Programming & Development | 1 | December 17, 2009 08:00 |
error message | susan | Siemens | 0 | August 17, 2007 01:27 |
Error Message on es-ice [BUG] | Wendy Tjia | Siemens | 0 | February 10, 2005 09:40 |