Page 1 of 1

array initialization problem.

Posted: Tue Dec 20, 2011 11:10 am
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
 

Re: array initialization problem.

Posted: Wed Dec 21, 2011 10:20 am
by Jacques Fontaine
Hello,
Could you join your Fortran file?
Best regards, JF

Re: array initialization problem.

Posted: Wed Dec 21, 2011 3:22 pm
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