array initialization problem.

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Chebli Rezki

array initialization problem.

Post by Chebli Rezki »

Hello,
I created a new array "smbrcv(iel)" which is updated in every time step.
When I impose "ntchr = 50" , I notice that "smbrcv" array is initialized to zero after every 50 iterations and can't recover the previous time step value.
I had the same problem with  "ntchr = 10" (In this case, the initialization is done in every 10 iterations)
Could you please, tell me how I can resolve this problem ?
Best regards,
RC
 
Jacques Fontaine

Re: array initialization problem.

Post by Jacques Fontaine »

Hello,
Could you join your Fortran file?
Best regards, JF
Chebli Rezki

Re: array initialization problem.

Post by Chebli Rezki »

Hi Jacques,
Thank you for your help.
The problem is now resolved by putting "smbrcv" array inside "caltri" routine and updating it every time step, whereas it was earlier inside "navsto" routine.
Best regards.
RC
Post Reply