CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

FORTRAN Routine - variable passing

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 11, 2005, 14:23
Default FORTRAN Routine - variable passing
  #1
Malcolm
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.

  Reply With Quote

Old   August 11, 2005, 19:51
Default Re: FORTRAN Routine - variable passing
  #2
Malcolm
Guest
 
Posts: n/a
Never mind.

I forgot that that the variable is defined where the subroutine is initially called.
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


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