CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Siemens (https://www.cfd-online.com/Forums/siemens/)
-   -   how to transport parameter between subroutines (https://www.cfd-online.com/Forums/siemens/53708-how-transport-parameter-between-subroutines.html)

Jane March 17, 2004 03:02

how to transport parameter between subroutines
 
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

roadracer March 18, 2004 08:14

Re: how to transport parameter between subroutines
 
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

Jane March 18, 2004 08:56

Re: how to transport parameter between subroutines
 
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


All times are GMT -4. The time now is 14:03.