Skip to content

Commit

Permalink
Merge pull request #60 from molssi-seamm/dev
Browse files Browse the repository at this point in the history
Bugfix: error in number of cores.
  • Loading branch information
seamm authored Aug 22, 2024
2 parents 6e0ca76 + 4bfdaea commit 0cb6c24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
=======
History
=======
2024.8.22 -- Bugfix: error in number of cores.
* Fixed an error if options for number of cores were strings, not numbers.

2024.7.31 -- Bugfix and improvements for parallel runs
* There was an issue saving the pressure and volume as properties due to a mismatch
in the names used. This has been corrected.
Expand Down
4 changes: 2 additions & 2 deletions lammps_step/lammps.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,9 @@ def run(self):
if global_options["parallelism"] in ("any", "mpi"):
np = n_atoms // o["atoms_per_core"] + 1
if o["ncores"] != "available":
np = min(np, o["ncores"])
np = min(np, int(o["ncores"]))
if global_options["ncores"] != "available":
np = min(np, global_options["ncores"])
np = min(np, int(global_options["ncores"]))
else:
np = 1

Expand Down

0 comments on commit 0cb6c24

Please sign in to comment.