Skip to content

Commit

Permalink
Merge pull request #30 from molssi-seamm/dev
Browse files Browse the repository at this point in the history
Fixed bug with non-integer cores per atom.
  • Loading branch information
seamm committed Feb 17, 2023
2 parents abc23fb + 818a051 commit 76c2f9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
History
=======

2023.2.17.1 -- Fixed Linux bug with thread limit

2023.2.17 -- Limiting number of threads
* By default DFTB+ can try to use all the cores on a larger machine, which can be
inneficient for smaller systems. This changes limits DFTB+ to 1 core per 500
Expand Down
2 changes: 1 addition & 1 deletion dftbplus_step/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ def run(self, current_input):

if options["use_openmp"]:
n_atoms = configuration.n_atoms
n_atoms_per_core = options["natoms_per_core"]
n_atoms_per_core = int(options["natoms_per_core"])
n_threads = int(round(n_atoms / n_atoms_per_core))
if n_threads > n_cores:
n_threads = n_cores
Expand Down

0 comments on commit 76c2f9d

Please sign in to comment.