Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mjohnson541 committed Dec 6, 2023
1 parent 849f7b2 commit cc1a75a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pynta/calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,8 @@ def f(a):
return slab.get_potential_energy()
if a0 is None:
a0 = reference_states[chemical_symbols.index(metal)]['a']
c0 = reference_states[chemical_symbols.index(metal)]['c']
cpera = reference_states[chemical_symbols.index(metal)]['c/a']
c0 = cpera * a0
init_guess = [a0,c0]
out = opt.minimize(f,x0=init_guess,options=options)
print(out)
Expand Down

0 comments on commit cc1a75a

Please sign in to comment.