Using Tools > Working with User Code > Creating a New User Library

Your Ad Here




Creating a New User Library

A user library is created from its constituent user function(s) and a library registration function. STAR-CCM+ does not require a particular compiler to be used for this process. For a selection of generic compilers, the table below gives the basic commands to create a library with base-name user from C or Fortran source files. Optional compilation flags, such as for optimization, can also be used; consult the compiler manual for more information. Compilers not listed in this table may also be used.

Compiler
    
Compilation Command

GCC

 

gcc -fPIC -shared *.c -o libuser.so

GNU Fortran 77

 

g77 -fPIC -shared *.f -o libuser.so

G95

 

g95 -fPIC -shared *.f -o libuser.so

Return to CD-adapco STAR-CCM+ Index


Your Ad Here