Skip to content

Commit

Permalink
upudate another bug for ase_opt
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhu2017 committed Oct 18, 2024
1 parent 9e2e022 commit 78ef402
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pyxtal/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -1282,6 +1282,8 @@ def update_row_energy_serial(self, generator, write_freq, args, args_up):
self._update_db(results, args[0], *args_up)
results = []
self.print_memory_usage()
if len(results) > 0:
self._update_db(results, args[0], *args_up)

def update_row_energy_mproc(self, ncpu, generator, args, args_up):
"""
Expand Down
4 changes: 2 additions & 2 deletions pyxtal/interface/ase_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def get_calculator(calculator):

return calc

#def ASE_relax(struc, calculator, opt_cell=False, step=500, fmax=0.1, logfile=None, max_time=10.0, label='ase'):
def ASE_relax(struc, calculator, opt_cell=False, step=500, fmax=0.1, logfile='ase.log', max_time=10.0, label='ase'):
def ASE_relax(struc, calculator, opt_cell=False, step=500, fmax=0.1, logfile=None, max_time=10.0, label='ase'):
#def ASE_relax(struc, calculator, opt_cell=False, step=500, fmax=0.1, logfile='ase.log', max_time=10.0, label='ase'):
"""
ASE optimizer
Args:
Expand Down

0 comments on commit 78ef402

Please sign in to comment.