From dcf6bca3ad587677f713796ccd657bbd7e76229f Mon Sep 17 00:00:00 2001 From: rohskopf Date: Tue, 6 Sep 2022 08:19:05 -0600 Subject: [PATCH] Output model loading statements on one proc --- src/ML-IAP/mliap_model_python.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ML-IAP/mliap_model_python.cpp b/src/ML-IAP/mliap_model_python.cpp index 8f88fb319d..acbf2ed92d 100644 --- a/src/ML-IAP/mliap_model_python.cpp +++ b/src/ML-IAP/mliap_model_python.cpp @@ -26,6 +26,7 @@ #include "pair_mliap.h" #include "python_compat.h" #include "utils.h" +#include "comm.h" #include @@ -104,7 +105,7 @@ void MLIAPModelPython::read_coeffs(char *fname) if (loaded) { this->connect_param_counts(); } else { - utils::logmesg(lmp, "Loading python model deferred.\n"); + if (comm->me == 0) utils::logmesg(lmp, "Loading python model deferred.\n"); } }