Ansys Learning Forum Forums Discuss Simulation Fluids Problems defining static array in UDF Reply To: Problems defining static array in UDF

Rob
Forum Moderator

I can't see const int used in any of the examples so wonder if it's an oddity of C, C++, C# etc that will pass the compiler step as it's not technically an illegal statement but may not be recognised by all node or OS configurations. Does integer N_IDs = 7 work?

The #define approach may not store N_IDs as an integer?Â