-
-
September 21, 2017 at 8:10 pmXingchun WangSubscriber
Hi, I can't compile User-define function as expected, also, it seems the User-define function will be compiled if running fluent with the serial mode, I'll attach the 2 log file,
is for serial mode and is for parallel mode. Â
Â
-
September 21, 2017 at 8:12 pmXingchun WangSubscriber
Well, the upload doesn't work, so I'll post here
Â
for d in lnamd64/[23]*; do
 (
  cd $d;
rm -rf *.{c,h,cpp,hpp};
  for f in ../../src/*.{c,h,cpp,hpp} ../../src/makefile ../../src/user.udf; do
   if [ -f $f -a ! -f `basename $f` ]; then
    echo "# linking to" $f "in" $d;
    ln -s $f .;
   fi;
  done;
  echo "";
  echo "# building library in" $d;
  if [ "" = "1" ]; then
echo "# using gcc64";
make ARCHC=gcc64 -k>makelog 2>&1;
  else
if [ "" = "1" ]; then
echo "# using gcc";
make ARCHC=gcc -k>makelog 2>&1;
else
make -k>makelog 2>&1;
fi;
  fi;
  cat makelog;
 )
done
# linking to ../../src/Sloshing.c in lnamd64/3ddp
Â
# building library in lnamd64/3ddp
make[1]: Entering directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp'
# Generating udf_names.c because of makefile Sloshing.c
make[2]: Entering directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp'
make libudf.so "CFLAGS=-D_lnamd64 -D_GNU_SOURCE -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= " "LDFLAGS=-shared -lm"
make[3]: Entering directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp'
# Compiling udf_names.o because of udf_names.c
cc -D_lnamd64 -D_GNU_SOURCE -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/`expr "`pwd`" : '.*/(.*)/[23].*'`/`basename "`pwd`"` -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/main -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/addon-wrapper -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/io -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/species -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/pbns -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/numerics -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/sphysics -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/storage -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/mphase -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/bc -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/models -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/material -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/amg -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/util -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/mesh -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/udf -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/ht -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dx -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/turbulence -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/parallel -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/etc -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/ue -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dpm -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dbns -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/cortex/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/client/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/tgrid/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/mpi_wrapper/include -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/mpi_wrapper/src -I. -c udf_names.c
# Compiling Sloshing.o because of Sloshing.c
cc -D_lnamd64 -D_GNU_SOURCE -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/`expr "`pwd`" : '.*/(.*)/[23].*'`/`basename "`pwd`"` -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/main -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/addon-wrapper -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/io -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/species -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/pbns -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/numerics -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/sphysics -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/storage -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/mphase -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/bc -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/models -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/material -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/amg -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/util -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/mesh -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/udf -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/ht -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dx -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/turbulence -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/parallel -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/etc -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/ue -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dpm -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dbns -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/cortex/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/client/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/tgrid/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/mpi_wrapper/include -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/mpi_wrapper/src -I. -c Sloshing.c
# Linking libudf.so because of makefile user.udf udf_names.c udf_names.o Sloshing.o
cc -shared -lm udf_names.o Sloshing.o  -o libudf.so
make[3]: Leaving directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp'
make[2]: Leaving directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp'
make[1]: Leaving directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp'
# linking to ../../src/Sloshing.c in lnamd64/3ddp_host
Â
# building library in lnamd64/3ddp_host
make[1]: Entering directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_host'
# Generating udf_names.c because of makefile Sloshing.c
make[2]: Entering directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_host'
make libudf.so "CFLAGS=-D_lnamd64 -D_GNU_SOURCE -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= " "LDFLAGS=-shared -lm"
make[3]: Entering directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_host'
# Compiling udf_names.o because of udf_names.c
cc -D_lnamd64 -D_GNU_SOURCE -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/`expr "`pwd`" : '.*/(.*)/[23].*'`/`basename "`pwd`"` -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/main -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/addon-wrapper -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/io -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/species -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/pbns -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/numerics -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/sphysics -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/storage -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/mphase -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/bc -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/models -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/material -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/amg -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/util -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/mesh -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/udf -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/ht -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dx -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/turbulence -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/parallel -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/etc -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/ue -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dpm -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dbns -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/cortex/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/client/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/tgrid/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/mpi_wrapper/include -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/mpi_wrapper/src -I. -c udf_names.c
# Compiling Sloshing.o because of Sloshing.c
cc -D_lnamd64 -D_GNU_SOURCE -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/`expr "`pwd`" : '.*/(.*)/[23].*'`/`basename "`pwd`"` -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/main -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/addon-wrapper -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/io -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/species -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/pbns -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/numerics -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/sphysics -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/storage -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/mphase -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/bc -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/models -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/material -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/amg -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/util -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/mesh -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/udf -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/ht -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dx -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/turbulence -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/parallel -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/etc -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/ue -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dpm -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dbns -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/cortex/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/client/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/tgrid/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/mpi_wrapper/include -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/mpi_wrapper/src -I. -c Sloshing.c
# Linking libudf.so because of makefile user.udf udf_names.c udf_names.o Sloshing.o
cc -shared -lm udf_names.o Sloshing.o  -o libudf.so
make[3]: Leaving directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_host'
make[2]: Leaving directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_host'
make[1]: Leaving directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_host'
# linking to ../../src/Sloshing.c in lnamd64/3ddp_node
Â
# building library in lnamd64/3ddp_node
make[1]: Entering directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_node'
# Generating udf_names.c because of makefile Sloshing.c
make[2]: Entering directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_node'
make libudf.so "CFLAGS=-D_lnamd64 -D_GNU_SOURCE -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= " "LDFLAGS=-shared -lm"
make[3]: Entering directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_node'
# Compiling udf_names.o because of udf_names.c
gcc -D_lnamd64 -D_GNU_SOURCE -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/`expr "`pwd`" : '.*/(.*)/[23].*'`/`basename "`pwd`"` -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/main -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/addon-wrapper -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/io -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/species -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/pbns -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/numerics -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/sphysics -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/storage -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/mphase -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/bc -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/models -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/material -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/amg -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/util -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/mesh -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/udf -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/ht -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dx -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/turbulence -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/parallel -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/etc -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/ue -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dpm -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dbns -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/cortex/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/client/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/tgrid/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/mpi_wrapper/include -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/mpi_wrapper/src -I. -c udf_names.c
# Compiling Sloshing.o because of Sloshing.c
gcc -D_lnamd64 -D_GNU_SOURCE -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/`expr "`pwd`" : '.*/(.*)/[23].*'`/`basename "`pwd`"` -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/main -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/addon-wrapper -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/io -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/species -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/pbns -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/numerics -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/sphysics -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/storage -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/mphase -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/bc -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/models -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/material -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/amg -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/util -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/mesh -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/udf -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/ht -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dx -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/turbulence -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/parallel -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/etc -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/ue -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dpm -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dbns -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/cortex/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/client/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/tgrid/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/mpi_wrapper/include -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/mpi_wrapper/src -I. -c Sloshing.c
# Linking libudf.so because of makefile user.udf udf_names.c udf_names.o Sloshing.o
gcc -shared -lm udf_names.o Sloshing.o  -o libudf.so
make[3]: Leaving directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_node'
make[2]: Leaving directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_node'
make[1]: Leaving directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_node'
Â
-
September 21, 2017 at 8:13 pmXingchun WangSubscriber
for d in lnamd64/[23]*; do
 (
  cd $d;
rm -rf *.{c,h,cpp,hpp};
  for f in ../../src/*.{c,h,cpp,hpp} ../../src/makefile ../../src/user.udf; do
   if [ -f $f -a ! -f `basename $f` ]; then
    echo "# linking to" $f "in" $d;
    ln -s $f .;
   fi;
  done;
  echo "";
  echo "# building library in" $d;
  if [ "" = "1" ]; then
echo "# using gcc64";
make ARCHC=gcc64 -k>makelog 2>&1;
  else
if [ "" = "1" ]; then
echo "# using gcc";
make ARCHC=gcc -k>makelog 2>&1;
else
make -k>makelog 2>&1;
fi;
  fi;
  cat makelog;
 )
done
# linking to ../../src/Sloshing.c in lnamd64/3ddp_host
Â
# building library in lnamd64/3ddp_host
make[1]: Entering directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_host'
# Generating udf_names.c because of makefile Sloshing.c
make[2]: Entering directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_host'
make libudf.so "CFLAGS=-D_lnamd64 -D_GNU_SOURCE -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= " "LDFLAGS=-shared -lm"
make[3]: Entering directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_host'
make[3]: Warning: File `udf_names.c' has modification time 0.42 s in the future
# Compiling udf_names.o because of udf_names.c
cc -D_lnamd64 -D_GNU_SOURCE -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/`expr "`pwd`" : '.*/(.*)/[23].*'`/`basename "`pwd`"` -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/main -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/addon-wrapper -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/io -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/species -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/pbns -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/numerics -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/sphysics -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/storage -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/mphase -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/bc -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/models -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/material -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/amg -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/util -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/mesh -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/udf -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/ht -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dx -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/turbulence -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/parallel -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/etc -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/ue -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dpm -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dbns -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/cortex/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/client/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/tgrid/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/mpi_wrapper/include -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/mpi_wrapper/src -I. -c udf_names.c
In file included from /data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/udf/udf.h:22:0,
         from udf_names.c:
/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/main/global.h:9:20: fatal error: stdio.h: No such file or directory
 # include
          ^
compilation terminated.
make[3]: *** [udf_names.o] Error 1
make[3]: Target `libudf.so' not remade because of errors.
make[3]: warning: Â Clock skew detected. Â Your build may be incomplete.
make[3]: Leaving directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_host'
make[2]: *** [lnamd64] Error 2
make[2]: Leaving directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_host'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_host'
# linking to ../../src/Sloshing.c in lnamd64/3ddp_node
Â
# building library in lnamd64/3ddp_node
make[1]: Entering directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_node'
# Generating udf_names.c because of makefile Sloshing.c
make[2]: Entering directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_node'
make libudf.so "CFLAGS=-D_lnamd64 -D_GNU_SOURCE -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= " "LDFLAGS=-shared -lm"
make[3]: Entering directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_node'
make[3]: Warning: File `udf_names.c' has modification time 0.42 s in the future
# Compiling udf_names.o because of udf_names.c
cc -D_lnamd64 -D_GNU_SOURCE -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/`expr "`pwd`" : '.*/(.*)/[23].*'`/`basename "`pwd`"` -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/main -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/addon-wrapper -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/io -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/species -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/pbns -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/numerics -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/sphysics -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/storage -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/mphase -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/bc -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/models -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/material -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/amg -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/util -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/mesh -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/udf -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/ht -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dx -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/turbulence -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/parallel -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/etc -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/ue -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dpm -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/dbns -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/cortex/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/client/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/tgrid/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/src -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/mpi_wrapper/include -I/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/multiport/mpi_wrapper/src -I. -c udf_names.c
In file included from /data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/udf/udf.h:22:0,
         from udf_names.c:
/data/software/Fluent/ansys_inc/v181/fluent/fluent18.1.0/src/main/global.h:9:20: fatal error: stdio.h: No such file or directory
 # include
          ^
compilation terminated.
make[3]: *** [udf_names.o] Error 1
make[3]: Target `libudf.so' not remade because of errors.
make[3]: warning: Â Clock skew detected. Â Your build may be incomplete.
make[3]: Leaving directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_node'
make[2]: *** [lnamd64] Error 2
make[2]: Leaving directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_node'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/data/home/xwang3/workspace/libudf/lnamd64/3ddp_node'
Â
-
September 22, 2017 at 5:18 pmpglAnsys Employee
Sorry that the file upload doesn't work, we'll look into that.Â
I'll move this over to he Fluids category since this is a Fluent based UDF, and not product installation based.
I do hope that others on the forum can chime in and help solve your question.Â
-
September 22, 2017 at 6:47 pmXingchun WangSubscriber
Sure, thank you.
-
March 15, 2018 at 8:33 pmFelipeMSubscriber
I have a similar problem. I am trying to compile a UDF in a Linux computer, and the same code that I used with no problem in Windows does not work in the linux system.
That's the Log
Â
Â
Working...
for d in lnamd64/[23]*; do
(
cd $d;
for f in ../../src/*.[ch] ../../src/makefile ../../src/user.udf; do
if [ ! -f `basename $f` ]; then
echo "# linking to" $f "in" $d;
ln -s $f .;
fi;
done;
echo "";
echo "# building library in" $d;
if [ "" = "1" ]; then
echo "# using gcc64";
make ARCHC=gcc64 -k>makelog 2>&1;
else
if [ "" = "1" ]; then
echo "# using gcc";
make ARCHC=gcc -k>makelog 2>&1;
else
make -k>makelog 2>&1;
fi;
fi;
cat makelog;
)
done
Â
# building library in lnamd64/3ddp
make[1]: Entering directory '/home/felipe-ubuntu/Desktop/casoudf/libudf/lnamd64/3ddp'
# Generating udf_names.c because of velocityudf_log.c
make[2]: Entering directory '/home/felipe-ubuntu/Desktop/casoudf/libudf/lnamd64/3ddp'
make libudf.so "CFLAGS=-D_lnamd64 -D_GNU_SOURCE -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= " "LDFLAGS=-shared -lm"
make[3]: Entering directory '/home/felipe-ubuntu/Desktop/casoudf/libudf/lnamd64/3ddp'
# Compiling udf_names.o because of udf_names.c
cc -D_lnamd64 -D_GNU_SOURCE -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/`expr "`pwd`" : '.*/(.*)/[23].*'`/`basename "`pwd`"` -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/main -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/addon-wrapper -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/io -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/species -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/pbns -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/numerics -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/sphysics -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/storage -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/mphase -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/bc -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/models -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/material -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/amg -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/util -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/mesh -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/udf -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/ht -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/dx -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/turbulence -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/parallel -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/etc -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/ue -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/dpm -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/dbns -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/cortex/src -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/client/src -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/tgrid/src -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/multiport/src -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/multiport/mpi_wrapper/include -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/multiport/mpi_wrapper/src -I. -c udf_names.c
# Compiling velocityudf_log.o because of velocityudf_log.c
cc -D_lnamd64 -D_GNU_SOURCE -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/`expr "`pwd`" : '.*/(.*)/[23].*'`/`basename "`pwd`"` -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/main -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/addon-wrapper -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/io -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/species -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/pbns -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/numerics -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/sphysics -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/storage -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/mphase -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/bc -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/models -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/material -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/amg -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/util -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/mesh -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/udf -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/ht -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/dx -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/turbulence -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/parallel -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/etc -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/ue -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/dpm -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/src/dbns -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/cortex/src -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/client/src -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/tgrid/src -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/multiport/src -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/multiport/mpi_wrapper/include -I/home/felipe-ubuntu/ansys_inc/v170/fluent/fluent17.0.0/multiport/mpi_wrapper/src -I. -c velocityudf_log.c
velocityudf_log.c: In function 'on_load':
velocityudf_log.c9: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf (uvel, "%f", &datauvel);
^
velocityudf_log.c:40: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf (vvel, "%f", &datavvel);
^
velocityudf_log.c:41: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf (tm, "%f", &datatime);
^
# Linking libudf.so because of udf_names.c udf_names.o velocityudf_log.o
ld -shared -lm udf_names.o velocityudf_log.o -o libudf.so
make[3]: Leaving directory '/home/felipe-ubuntu/Desktop/casoudf/libudf/lnamd64/3ddp'
make[2]: Leaving directory '/home/felipe-ubuntu/Desktop/casoudf/libudf/lnamd64/3ddp'
make[1]: Leaving directory '/home/felipe-ubuntu/Desktop/casoudf/libudf/lnamd64/3ddp'
Â
You can also see the 'log'-file in
the working directory for this compilation history
Â
Done.
-
March 15, 2018 at 8:35 pmFelipeMSubscriber
I do not understand this warning. It does not show up when running in a windows PC.
warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
I would appreciate If anyone could help me.
-
March 18, 2018 at 5:41 pmXingchun WangSubscriber
Hi Felipe,
First I would suggest you to try compiling the UDF under serial mode, also note that if you directly copy the UDF file from windows to Linux can cause problems, maybe you have to write your file under Linux environment with Vi or nano.
My problem was caused by the computing nodes don't have a compiler, so I compiled the UDF on the master node (the one we use to submit jobs, it has compilers), then when running the parallel mode, just load the Libudf library and hook UDF and it's good to go.
Hope this solution to my case will help you.
Â
-
- The topic ‘Linux Parallel can’t compile UDF’ is closed to new replies.
- Non-Intersected faces found for matching interface periodic-walls
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Script error Code: 800a000d
- Cyclone (Stairmand) simulation using RSM
- Fluent fails with Intel MPI protocol on 2 nodes
- error udf
- Diesel with Ammonia/Hydrogen blend combustion
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Script Error
-
1241
-
543
-
523
-
225
-
209
© 2024 Copyright ANSYS, Inc. All rights reserved.