CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   can anyone tell me how to use a fortran subroutine (https://www.cfd-online.com/Forums/fluent/45187-can-anyone-tell-me-how-use-fortran-subroutine.html)

veda June 28, 2007 01:13

can anyone tell me how to use a fortran subroutine
 
hi

i would like to use a fortran sub routine as UDF.. but as FLUENT doesnt accept one will have to write a c code to call the same . i am having troubles linking it .. can anyone pls help me on this ..


jasond June 29, 2007 16:24

Re: can anyone tell me how to use a fortran subrou
 
As far as I know, you'll need to use the TUI/Makefile approach outlined in Section 5.3 of the Fluent UDF manual, and there is an example given using Fortran in Section 5.4.1. If you have followed all of that and are still having trouble, you'll need to give more detail - what platform and compiler you are using along with some info about how you are trying to link the C and Fortran code.

Jason


All times are GMT -4. The time now is 22:36.