|
[Sponsors] |
August 11, 2005, 14:23 |
FORTRAN Routine - variable passing
|
#1 |
Guest
Posts: n/a
|
Hi
I am writing a FORTRAN routine (for use in cfx 5.7.1) and am confused about how variables are passed to it. It is similar to the example in the cfx manual "User CEL Example 1: User Defined Momentum Source" but a little more complicated. From the user function editor I need to pass in: Temperature, y location, and z location. So in the arguments list box I have: Argument List: [K], [m], [m] Within the FORTRAN routine, I have it so that the lower level routine is called using: CALL USER_NAME (NLOC,RET(1,1),ARGS(1,1),ARGS(1,2), ARGS(1,3))) My confusion is regarding what ARGS(1,1), ARGS(1,2), ARGS(1,3) are. How does the FORTRAN routine know that I wanted ARGS's to be. (i.e. how do I pass the y and z locations rather than the x and y) Any advice would be appreciated. |
|
August 11, 2005, 19:51 |
Re: FORTRAN Routine - variable passing
|
#2 |
Guest
Posts: n/a
|
Never mind.
I forgot that that the variable is defined where the subroutine is initially called. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |
emag beta feature: charge density | charlotte | CFX | 4 | March 22, 2011 10:14 |
user subroutine error | CFDUSER | CFX | 2 | December 9, 2006 07:31 |
user defined function | cfduser | CFX | 0 | April 29, 2006 11:58 |
Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 21:09 |