UDF is working in Laptop, but not working in Serial Cluster
Hello everyone,
I am facing a weird problem. This is the UDF for assign hydrostatic pressure on one face. #include "udf.h" DEFINE_PROFILE(pressure_profile,t,i) { real x[ND_ND]; real y; face_t f; begin_f_loop(f,t) { F_CENTROID(x,f,t); y=x[1]; F_PROFILE(f,t,i)=(0.4898-y)*998.2*9.81; } end_f_loop(f,t) } It is working properly when I run it on my Laptop. But it's not working on Cluster, even I select serial processor. it gives me the following error. cpp -I"/opt/ansys_inc/v145/fluent/fluent14.5.0/src" -I"/opt/ansys_inc/v145/fluent/fluent14.5.0/cortex/src" -I"/opt/ansys_inc/v145/fluent/fluent14.5.0/client/src" -I"/opt/ansys_inc/v145/fluent/fluent14.5.0/multiport/src" -I. -DUDFCONFIG_H="<udfconfig.h>" "/home/tafrin/side_inlet_wide_12_8.75_files/dp0/FFF/Fluent/hello.c" Error: /home/tafrin/side_inlet_wide_12_8.75_files/dp0/FFF/Fluent/hello.c: line 2: syntax error. For parallel processor, it also gives gives the same error. I can understand that for parallel, it needs some modification, but for serial why it is not working on cluster, I don't understand. I didn't use C language before, so facing difficulties to debug the problem. Could anyone please help me in this regard? Thanks in advance. Regards, Tanjina |
All times are GMT -4. The time now is 02:15. |