Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upudate another bug for ase_opt #289

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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