-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dear Jiawei Wang, I suppose the programmer assumed that line 694 is reached at least once during the loop, despite the if-clause around it. But even if this were not the case, many C++ compilers will initialise f2 to zero when it is declared although I don't think the standard guarantees this. Regards, Tim On 01/18/2013 04:02 AM, Jiawei Wang wrote: > Hi, all: > > Please look at the attached figure. > > In the function Refine_HL_coeff::operator(), the variable f2 was > declared on the line 684, and it was assigned to specific Miller > indices on the line 694. Once the iteration (690-718) was > terminated on the line 718, f2 could be any value. > > However, on the line 737, f2 was used again without pointing to any > specific Miller indices. > > Could anybody explain the reason for that, or it's a bug? > > Best, Jiawei Wang - -- - -- Dr Tim Gruene Institut fuer anorganische Chemie Tammannstr. 4 D-37077 Goettingen GPG Key ID = A46BEE1A -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFQ+Q67UxlJ7aRr7hoRAsdAAKDPKVtqzW3Fkrxg9Wdvhe4/2i7jfgCgkCB9 e1+Z50ivoQPyIJ4ZUhwBNhA= =4Trt -----END PGP SIGNATURE-----