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

how to transport parameter between subroutines

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 17, 2004, 04:02
Default how to transport parameter between subroutines
  #1
Jane
Guest
 
Posts: n/a
hi, experts

i meet a problem, for example: after calculating some parameter which is defined by myself through posda.f, i want transfer these data to another subroutine sorent.f to change the heat source term for every cell.So i add a commom sentence in these two subroutine to try to transfer the calculated data. but it seem it wasn't transported from posdat.f to sorent.f.(i add some 'write' in the sorent.f). if some one have these experience or have some idea about how to transfer the data between subroutine, please tell me , thank you very much.

jane
  Reply With Quote

Old   March 18, 2004, 09:14
Default Re: how to transport parameter between subroutines
  #2
roadracer
Guest
 
Posts: n/a
I noticed the same behaviour using sorsca,scalfn posdat and initfi. It didnīt work until I put the common block definition in initfi.f
  Reply With Quote

Old   March 18, 2004, 09:56
Default Re: how to transport parameter between subroutines
  #3
Jane
Guest
 
Posts: n/a
Hi, Roadracer

I spend whole day, and finally I got it, I make it runing successfully. It is ture I also use the common block to solve it. anyway, thank you for your mention.

Jane
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
subroutines in UDF kk FLUENT 3 February 9, 2007 02:38
CFX subroutines Neser CFX 0 November 9, 2005 00:07
subroutines Jared Siemens 1 August 25, 2005 14:38
fft subroutines pratap Main CFD Forum 1 August 6, 2003 17:49
HPC and subroutines Steve Siemens 20 March 7, 2003 10:12


All times are GMT -4. The time now is 16:33.