-
-
October 26, 2022 at 8:11 pm
Albert Abraham
SubscriberI have written a UDF to run in parallel in C. It contains the global reduction macro PRF_GRSUM1(). This macro is not supported in Fluent while solving in parallel so I am trying to compile the code instead of interpreting it. I have tried to follow compilation instructions in the manuel however, the built-in compiler only works on Windows. I am not sure how to work around this issue to succesfully compile the code in Fluent on Linux. Below is the basic code I am using as a test for compiling.
Â
// A simple adjust to test if we can compile in Fluent on Linux
#include "udf.h"
DEFINE_ADJUST(comptest,d)
{
  Thread* t;
  cell_t c;
  Â
  begin_c_loop(c,t)
  Â
 C_UDSI(c,t,2) = 1;
 Â
   end_c_loop(c,t)Â
} -
October 27, 2022 at 9:21 am
Rob
Forum ModeratorAs LINUX is a proper operating system there's a compiler included in the OS as standard. Just deselect the "use included compiler" and build as normal.Â
-
October 9, 2023 at 9:49 am
mohamed-walid.alrihawi
Subscriberwhere do i find the "use included compiler"
-
-
October 9, 2023 at 10:13 am
Rob
Forum ModeratorOn the Compiler panel.Â
-
October 11, 2023 at 11:49 am
mohamed-walid.alrihawi
Subscribercould you please provide a screenshot of the window ?
Â
-
-
October 11, 2023 at 1:50 pm
-
- The topic ‘Compiling UDFs in Linux’ is closed to new replies.
-
3492
-
1057
-
1051
-
965
-
942
© 2025 Copyright ANSYS, Inc. All rights reserved.