add warning message when unit conversion is enabled

This commit is contained in:
Axel Kohlmeyer
2020-06-25 10:46:52 -04:00
parent 6420ccafa2
commit ec057e313f

View File

@ -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 new TextFileReader(filepath, filetype);
} }
return nullptr; return nullptr;