Skip to content

Commit

Permalink
change relaxation default in ase to LBFGS
Browse files Browse the repository at this point in the history
  • Loading branch information
thorben-frank committed Aug 22, 2024
1 parent bc901cb commit 271541f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mlff/cAPI/mlff_structure_relaxation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from ase.units import *
from ase import Atoms
from ase.optimize import QuasiNewton
import ase.optimize as ase_opt

from mlff.md.calculator import mlffCalculator
from mlff.io import read_json, create_directory, load_params_from_ckpt_dir
Expand Down Expand Up @@ -234,7 +234,7 @@ def load_start_geometry(f: str) -> Atoms:
from ase.io import write
write(os.path.join(save_dir, 'init_structure.xyz'), molecule)
# do a geometry relaxation
qn = QuasiNewton(molecule)
qn = ase_opt.LBFGS(molecule)
converged = qn.run(qn_tol, qn_max_steps)
if converged:
write(os.path.join(save_dir, 'relaxed_structure.xyz'), molecule)
Expand Down

0 comments on commit 271541f

Please sign in to comment.