CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   CFX 4.4: NAG Library Link to CFX subroutine... (http://www.cfd-online.com/Forums/cfx/21595-cfx-4-4-nag-library-link-cfx-subroutine.html)

Robin K September 7, 2005 18:51

CFX 4.4: NAG Library Link to CFX subroutine...
 
Hi,

I have a 6th order polynomial that I need to calculate as a particular SCAL changes.

Does anyone know, how I can link a NAG subroutine to CFX USRSRC.

If anyone does know, please let me know.

RK

Miroslav Babic September 21, 2005 10:28

Re: CFX 4.4: NAG Library Link to CFX subroutine...
 
Hi!

Hope this will help.

If you want to use your own fortran routine in your USR*** files (CFX-4), you can do it like this:

1.) put the routine(s) in a file ex. MY_ROUTINE.f

2.) compile it to get MY_ROUTINE.o (or. .obj) depends on the system (WIN, UNIX, LINUX)

3.) in GUI goto solve/advanced_options menu

4.) write in User object file MY_ROUTINE.o

or you can use MY_ROUTINE.f directly.

Then you can use your subroutines in any USR***

Miroslav Babic

Robin K September 21, 2005 10:40

Re: CFX 4.4: NAG Library Link to CFX subroutine...
 
Hi,

Sounds good. Thanks for your generous help.

Best Wishes,

RK


All times are GMT -4. The time now is 18:20.