Page 1 of 1

How to define a global array with length of ncelet?

Posted: Sun Feb 05, 2012 9:12 am
by Yuan Huang
hi, everyone

How to define a global array with length of ncelet?

thanks very much!

Yuan Huang

Re: How to define a global array with length of ncelet?

Posted: Sun Feb 05, 2012 2:54 pm
by Yvan Fournier
Hello,
For Code_Saturne 2.0 or 2.1 ?
  Yvan

Re: How to define a global array with length of ncelet?

Posted: Tue Feb 07, 2012 1:11 pm
by Yuan Huang
For   Code_Saturne 2.0, by the way,  is there a d ocument of i ntroduction of the difference between  Code_Saturne 2.0 and 2.1? thanks! Yuan Huang

Re: How to define a global array with length of ncelet?

Posted: Tue Feb 07, 2012 5:31 pm
by Yvan Fournier
Hello,
For a global array, you need to use the ituser or rtuser global user arrays with Code_Saturne2.0 (search for rtuser in the user documentation, though it is light on details)
With version 2.1, this is replaced by the cs_user_modules.f90 file (which allows defining arrays with your own choice of name).
Regarding changes between versions 2.0 and 2.1, you have the NEWS page linked to through the "announces" section of this Forum, which is very coarse-grained, and the ChangeLog in the code's sources which is very detailed. There is no "intermediate detail" document that I can think of.
Best regards,
  Yvan

Re: How to define a global array with length of ncelet?

Posted: Wed Feb 08, 2012 2:56 pm
by Yuan Huang
thanks!