Fluids

Fluids

Warning while compiling UDF.

    • Learner123
      Subscriber
      Respected Sir/Mam While compiling my UDF in Ansys Built-In Compiler, I constantly receive 1 warning which I am not able to understand. Does it affect my solution convergence?
      "In file included from VIS_NEW.cpp:1:
      In file included from D:\Program Files\ANSYS Inc\v211\fluent\fluent21.1.0\src\udf\udf.h:22:
      In file included from D:\Program Files\ANSYS Inc\v211\fluent\fluent21.1.0\src\main\global.h:249:
      In file included from D:\Program Files\ANSYS Inc\v211\fluent\fluent21.1.0\src\storage\var.h:10:
      D:\Program Files\ANSYS Inc\v211\fluent\ntbin\clang\10\Include\10.0.18362.0\shared\basetsd.h(322,12): warning: cast to 'void *' from smaller integer type 'unsigned long' [-Wint-to-void-pointer-cast]
        return((void * POINTER_32) (unsigned long) (ULONG_PTR) p);
            ^
      1 warning generated.
      "D:\Program Files\ANSYS Inc\v211\fluent"\ntbin\clang\bin\lld-link "D:\Program Files\ANSYS Inc\v211\fluent\fluent21.1.0\win64\3ddp_node\fl_mpi2110.lib" "D:\Program Files\ANSYS Inc\v211\fluent\fluent21.1.0\multiport\win64\mpi\shared\mport.lib" "D:\Program Files\ANSYS Inc\v211\fluent\ntbin\clang\lib\libcmt.lib" "D:\Program Files\ANSYS Inc\v211\fluent\ntbin\clang\lib\libcpmt.lib" "D:\Program Files\ANSYS Inc\v211\fluent\ntbin\clang\lib\libvcruntime.lib" "D:\Program Files\ANSYS Inc\v211\fluent\ntbin\clang\lib\oldnames.lib" "D:\Program Files\ANSYS Inc\v211\fluent\ntbin\clang\lib\onecore.lib" "D:\Program Files\ANSYS Inc\v211\fluent\ntbin\clang\lib\libucrt.lib" "D:\Program Files\ANSYS Inc\v211\fluent\ntbin\clang\lib\uuid.lib" /dll /out:libudf.dll udf_names.obj VIS_NEW.objscons: done building targets.
      Done"
      Please help. 

    • Learner123
      Subscriber
      Sir/Mam Please help.
      Does the above warning while compiling UDF affects the solution.
    • DrAmine
      Ansys Employee
      If you can load the libudf without issues then ignore the warning.
Viewing 2 reply threads
  • You must be logged in to reply to this topic.