CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Siemens (https://www.cfd-online.com/Forums/siemens/)
-   -   array initialization (https://www.cfd-online.com/Forums/siemens/53658-array-initialization.html)

Ossi February 20, 2004 05:27

array initialization
 
Is there an option to initialize all arrays is Star (and prostar) as zero before the start of calculation. It seems to me that sometimes there is some scratch data left in the computation especially when doing a restart with own subroutines.


Richard February 20, 2004 11:07

Re: array initialization
 
STAR should initialise its own arrays - you shouldn't have to worry about that. If this was not happening and you suspected one analysis/session was being corrupted by the previous one then you should report that to CD as a bug in STAR or PROSTAR. On the other hand, if you are talking about arrays in your own subroutines, it's your responsibility to initialise them. As far as I know, the Fortran standard states that there should be no initialisation except for arrays in common blocks. Maybe not even that.


All times are GMT -4. The time now is 07:27.