[Pw_forum] array bound check
Manoj Srivastava
manoj at phys.ufl.edu
Thu Sep 25 06:41:51 CEST 2008
Dear Dr. Giannozzi,
Thank you very much for your reply. The reason why I wanted to do the
array bound check is that I have been trying to make some changes
in the PWCOND part of the code to get the correct complex band for
cu(111), but implementation of those changes was giving me segmentation
fault. Now with the array bound check i perform, the code is even giving
me a problem where there was no problem before :( . I guess I will
try the CVS version and see what i get. By the way, is there a way to do
array bound check in a particular subroutine I am interested rather than
doing the whole code?
Regards,
Manoj Srivastava
On Wed, 24 Sep 2008, Paolo Giannozzi wrote:
>
> 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
>
>
>
> _______________________________________________
> Pw_forum mailing list
> Pw_forum at pwscf.org
> http://www.democritos.it/mailman/listinfo/pw_forum
>
More information about the users
mailing list