cosmetic changes (simplify, use constexpr, remove dead code, join wrapped lines)

This commit is contained in:
Axel Kohlmeyer
2021-12-22 23:29:56 -05:00
parent b53cda778c
commit 3b183bafbb
6 changed files with 28 additions and 47 deletions

View File

@ -23,7 +23,7 @@
using namespace LAMMPS_NS;
std::string NetCDFUnits::get_unit_for(const char *unit_style, Quantity quantity, Error *error)
std::string NetCDFUnits::get_unit_for(const char *unit_style, int quantity, Error *error)
{
if (!strcmp(unit_style, "lj")) {
if (quantity == Quantity::UNKNOWN) {