[Pw_forum] array bound check

Paolo Giannozzi giannozz at democritos.it
Wed Sep 24 17:32:51 CEST 2008


On Sep 24, 2008, at 15:24 , Manoj Srivastava wrote:

> pwcond.x           0000000000471304  poten_                     69
> poten.f90
> pwcond.x           000000000043709E  init_cond_                102
> init_cond.f90
> pwcond.x           000000000042583F  do_cond_                  250
> do_cond.f90
> pwcond.x           0000000000420E6F  MAIN__                     20
> condmain.f90

it also says which array index has exceeded which bound

> My question here is whether I am doing the array bound check right?

and my question is: why are you doing this? array bound check is
ONLY used to locate bugs. It should be never used in production
work. If a code compiled with array bound check signals a problem,
that's exactly what it is supposed to do. In most cases the errors
it signal are not real errors, or they are harmless, but sometimes
thay are true bugs. By the way: I didn't get any error (with the CVS
version) after Alexander's fix was applied

Paolo
---
Paolo Giannozzi, Dept of Physics, University of Udine
via delle Scienze 208, 33100 Udine, Italy
Phone +39-0432-558216, fax +39-0432-558222






More information about the users mailing list