Author Topic: TypeError: OptimizeGeometry() got an unexpected keyword argument 'max_forces'  (Read 6181 times)

0 Members and 1 Guest are viewing this topic.

Offline chenxin830107

  • New QuantumATK user
  • *
  • Posts: 2
  • Country: cn
  • Reputation: 0
    • View Profile
Hi,everyone!
I had a question when running the optimize geometry,the error information was"TypeError: OptimizeGeometry() got an unexpected keyword argument 'max_forces'
    disable_stress=True,
TypeError: OptimizeGeometry() got an unexpected keyword argument 'max_forces'
    disable_stress=True,
TypeError: OptimizeGeometry() got an unexpected keyword argument 'max_forces'
    disable_stress=True,
TypeError: OptimizeGeometry() got an unexpected keyword argument 'max_forces'
    disable_stress=True,
TypeError: OptimizeGeometry() got an unexpected keyword argument 'max_forces'
    disable_stress=True,
TypeError: OptimizeGeometry() got an unexpected keyword argument 'max_forces'
    disable_stress=True,
TypeError: OptimizeGeometry() got an unexpected keyword argument 'max_forces'
    disable_stress=True,
TypeError: OptimizeGeometry() got an unexpected keyword argument 'max_forces'

What should I do?  thank you very much!

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5429
  • Country: dk
  • Reputation: 89
    • View Profile
    • QuantumATK at Synopsys
The keyword was changed from "maximum_forces" to "max_forces" in 11.8. Thus, if you are running 11.8, all should be fine, but if you make the script with VNL 11.8 and try to run it with ATK 11.2, this error would occur. You just need to change it in the script, back to "maximum_forces".

Note that ATK 11.8 still accepts the "maximum_forces" keyword. It's only when you run new scripts with old ATK that there's a problem.