[gpaw-users] recursion depth error

Torsten Hahn Torsten.Hahn at physik.tu-freiberg.de
Fri Jul 20 09:17:45 CEST 2012


Hi all,

if i run a lcao calculation with many atoms having a ghost-setup, i run into the following error: 

===
  File "/home/hahn/lib/python/gpaw/setup.py", line 115, in correct_for_charge
    correct_for_charge(f_j, charge, degeneracy_j, True)
  File "/home/hahn/lib/python/gpaw/setup.py", line 97, in correct_for_charge
    if charge >= 0:
RuntimeError: maximum recursion depth exceeded in cmp
===

One solution would be to increase pythons global recursion limit with

sys.setrecursionlimit()

However, is this wise ? Is there a better workaround ?

Best regards,
Torsten.


More information about the gpaw-users mailing list