Skip to content

Commit

Permalink
Merge pull request #49 from pyiron/lammps_explicit_arguments
Browse files Browse the repository at this point in the history
Call LAMMPS with explicit arguments to clarify the task conversion
  • Loading branch information
jan-janssen authored Nov 13, 2023
2 parents 17edb8d + 2aa3bee commit 6a2d221
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions atomistics/calculators/lammps.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ def evaluate_with_lammps_library(
potential_dataframe: DataFrame,
lmp: LammpsASELibrary,
):
lmp = _run_simulation(structure, potential_dataframe, LAMMPS_INPUT_TEMPLATE, lmp)
lmp = _run_simulation(
structure=structure,
potential_dataframe=potential_dataframe,
input_template=LAMMPS_INPUT_TEMPLATE,
lmp=lmp,
)
results = {}
if "calc_energy" in tasks:
results["energy"] = lmp.interactive_energy_pot_getter()
Expand Down Expand Up @@ -61,7 +66,9 @@ def evaluate_with_lammps(
library=library,
diable_log_file=diable_log_file,
)
results_dict = evaluate_with_lammps_library(task_dict, potential_dataframe, lmp)
results_dict = evaluate_with_lammps_library(
task_dict=task_dict, potential_dataframe=potential_dataframe, lmp=lmp
)
lmp.close()
return results_dict

Expand Down

0 comments on commit 6a2d221

Please sign in to comment.