Skip to content

Commit

Permalink
Fixed copy and paste bug
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomDefaultUser committed May 30, 2024
1 parent 8cee359 commit 92831ff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 9 additions & 3 deletions mala/descriptors/atomic_density.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,17 @@ def __calculate_lammps(self, outdir, **kwargs):
filepath = __file__.split("atomic_density")[0]
if self.parameters._configuration["mpi"]:
if self.parameters.use_z_splitting:
runfile = os.path.join(filepath, "in.ggrid.python")
self.parameters.lammps_compute_file = os.path.join(
filepath, "in.ggrid.python"
)
else:
runfile = os.path.join(filepath, "in.ggrid_defaultproc.python")
self.parameters.lammps_compute_file = os.path.join(
filepath, "in.ggrid_defaultproc.python"
)
else:
runfile = os.path.join(filepath, "in.ggrid_defaultproc.python")
self.parameters.lammps_compute_file = os.path.join(
filepath, "in.ggrid_defaultproc.python"
)

# Do the LAMMPS calculation and clean up.
lmp.file(self.parameters.lammps_compute_file)
Expand Down
4 changes: 3 additions & 1 deletion mala/descriptors/minterpy_descriptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ def _calculate(self, atoms, outdir, grid_dimensions, **kwargs):
# else:
# runfile = os.path.join(filepath, "in.ggrid_defaultproc.python")
else:
runfile = os.path.join(filepath, "in.ggrid_defaultproc.python")
self.parameters.lammps_compute_file = os.path.join(
filepath, "in.ggrid_defaultproc.python"
)

# Do the LAMMPS calculation and clean up.
lmp.file(self.parameters.lammps_compute_file)
Expand Down

0 comments on commit 92831ff

Please sign in to comment.