Skip to content

Commit

Permalink
Merge pull request lammps#4428 from tadmor/fix-kim-single-proc-error-bug
Browse files Browse the repository at this point in the history
Single process errors in pair style kim reported using error->one
  • Loading branch information
akohlmey authored Jan 8, 2025
2 parents cd6ab17 + a795ae3 commit 0abb371
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/KIM/pair_kim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ void PairKIM::compute(int eflag, int vflag)
KIM_COMPUTE_ARGUMENT_NAME_particleContributing,
kim_particleContributing);
if (kimerror)
error->all(FLERR,"Unable to set KIM particle species codes and/or contributing");
error->one(FLERR,"Unable to set KIM particle species codes and/or contributing");
}

// kim_particleSpecies = KIM atom species for each LAMMPS atom
Expand All @@ -250,7 +250,7 @@ void PairKIM::compute(int eflag, int vflag)

// compute via KIM model
int kimerror = KIM_Model_Compute(pkim, pargs);
if (kimerror) error->all(FLERR, "KIM Compute returned error {}", kimerror);
if (kimerror) error->one(FLERR, "KIM Compute returned error {}", kimerror);

// scale results for fix adapt if needed
if (scale_extracted) {
Expand Down Expand Up @@ -814,7 +814,7 @@ void PairKIM::kim_free()
if (kim_init_ok) {
int kimerror = KIM_Model_ComputeArgumentsDestroy(pkim, &pargs);
if (kimerror)
error->all(FLERR,"Unable to destroy Compute Arguments Object");
error->one(FLERR,"Unable to destroy Compute Arguments Object");

KIM_Model_Destroy(&pkim);

Expand Down

0 comments on commit 0abb371

Please sign in to comment.