We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.

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?Â