CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CD-adapco

array initialization

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 20, 2004, 06:27
Default array initialization
  #1
Ossi
Guest
 
Posts: n/a
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.

  Reply With Quote

Old   February 20, 2004, 12:07
Default Re: array initialization
  #2
Richard
Guest
 
Posts: n/a
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.
  Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
array in UDF Kamal FLUENT 1 November 7, 2013 02:15
Array problems Malachy FLUENT 2 March 5, 2012 16:11
UDF array problem Malachy FLUENT 0 February 10, 2009 11:41
Array declaration kdarc OpenFOAM Running, Solving & CFD 0 August 23, 2007 23:21
??cfx5.6 array name?? Erica CFX 0 December 28, 2004 08:28


All times are GMT -4. The time now is 19:10.