CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   parallel udf problem in linux (http://www.cfd-online.com/Forums/fluent-udf/74972-parallel-udf-problem-linux.html)

endlessfree April 13, 2010 10:19

parallel udf problem in linux
 
the program with parallel udf was solved the average temperature of Zone ID=4.when the average temperature is above 1013K,send save and exit fluent signal.it may be compiled in windows and linux,but run in windows,can not run in linux. please help me.

display error:

/public/software/Fluent.Inc/fluent6.3.26/lnamd64/3d_host/fluent.6.3.26:
symbol lookup error:
/public/home/nengyuan/endlessfree/example/libudf/lnamd64/3d_node/libudf.so:
undefined symbol: node_recv_int_1


#include "udf.h"

static int alid=4;

DEFINE_ADJUST(my_adjust,d)
{

/*!!!!al Zone ID*/
real cell_tot=0,altavg=0.;

#if !RP_NODE
char *filenamesignal="//public//home//nengyuan//endlessfree//example//exit-fluent.txt"; /*!!!save and exit fluent signal*/
FILE *fp=NULL;
#endif

#if !RP_HOST
Thread *alt;
cell_t c;
#endif

/*#if !RP_NODE
alid=4;
#endif*/

host_to_node_int_1(alid);

#if !RP_HOST
alt= Lookup_Thread(d, alid);
begin_c_loop(c,alt)
{
cell_tot++;
altavg += C_T(c,alt);
}
end_c_loop(c,alt)

#if RP_NODE
altavg=PRF_GRSUM1(altavg);
cell_tot=PRF_GRSUM1(cell_tot);
#endif
#endif

node_to_host_real_2(altavg,cell_tot);

#if !RP_NODE

altavg /= cell_tot;

Message("Al Averge Temperature= %.2f\n",altavg);

if(altavg>=1013){
fp=fopen(filenamesignal,"w");
fclose(fp);
}
#endif

}


All times are GMT -4. The time now is 23:51.