Page 1 of 1

Bug in memocc.F90

Posted: Mon Apr 18, 2011 9:50 pm
by jzwanzig
I cannot get 6.7.2 to run when compiled in debug mode. The failure occurs in memocc.F90, line 488, because i_padding is being called with nstart=-2 and so the array is being accessed at element -1, which doesn't exist. The reason that nstart is set to -2 in debug mode is that in the calling function, mo_i1 line 973, it is set to product(shape(array))-ndebug, which evaluates to 3 - 5 = -2. However, as I have no real idea what the code is supposed to be doing I don't know how to fix the problem.

Please respond quickly, I really need to develop in debug mode as much as possible.

thanks,
Joe

Re: Bug in memocc.F90

Posted: Tue Apr 19, 2011 2:34 pm
by pouillon
Please see this thread: viewtopic.php?f=17&t=993

You should get in touch with Damien Caliste for questions regarding memocc.

Re: Bug in memocc.F90

Posted: Tue Apr 19, 2011 2:37 pm
by jzwanzig
Fantastic, thanks Yann!!! I find debug at the naughty level to be very useful, I will get in touch with Damien right away.

Joe