From ec057e313f75329ad6b9d91b0e9febd520b6743d Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 25 Jun 2020 10:46:52 -0400 Subject: [PATCH] add warning message when unit conversion is enabled --- src/potential_file_reader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/potential_file_reader.cpp b/src/potential_file_reader.cpp index e2b3909ace..47283fd574 100644 --- a/src/potential_file_reader.cpp +++ b/src/potential_file_reader.cpp @@ -174,7 +174,9 @@ TextFileReader *PotentialFileReader::open_potential(const std::string &path) { } } } - + if (unit_convert != utils::NOCONVERT) + lmp->error->warning(FLERR, fmt::format("Converting {} in {} units to {} " + "units", filetype, units, unit_style)); return new TextFileReader(filepath, filetype); } return nullptr;