|
[Sponsors] |
how to transport parameter between subroutines |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 17, 2004, 04:02 |
how to transport parameter between subroutines
|
#1 |
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 |
|
March 18, 2004, 09:14 |
Re: how to transport parameter between subroutines
|
#2 |
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
|
|
March 18, 2004, 09:56 |
Re: how to transport parameter between subroutines
|
#3 |
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 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |