CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Compiling UDF on a cluster (https://www.cfd-online.com/Forums/fluent/70865-compiling-udf-cluster.html)

Adya December 8, 2009 10:49

Compiling UDF on a cluster
 
Hello All,

I am trying to compile a UDF on cluster(multiple nodes). If I run Fluent interactively on the cluster it compiles fine and I am able to link the UDF files with the case file. But when I submit a job on the cluster I get an error that says the UDF file cannot be found. My job file looks like this:

/file/rcd/nethome/users/sa5kb/SJA/Case1/test/Case1-finemesh.cas
/define/user-defined/compiled/compile/libudfyes vel_piston.c""
/define/user-defined/compiled/load/libudf /nethome/users/sa5kb/SJA/Case1/test/libudf/lnamd64/2ddp/libudf.so
/solve/iterate 10000
/file/wd /nethome/users/sa5kb/SJA/Case1/test/Case1-finemesh.dat
/exit


This job file compiles the C program but is not able to find and link the compiled UDF with the case file. Is there anything wrong in the way I am doing it?

mighelone December 14, 2009 11:30

I have never compiled udf, during a job, so I'm guessing....

from which path do you launch your job? Do you move to the working directory in the script file, otherwise the working directory is the home.

Probably fluent compiles the udf library in the home directory o somewhere else.
Try to look up the libudf directory generated during compilation, using

find $HOME -name "*libudf*"

regards

Michele


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