put contents of netcdf_units into NetCDFUnits namespace

This commit is contained in:
Axel Kohlmeyer
2021-12-21 13:16:23 -05:00
parent 1c25c96aaa
commit c780768e91
6 changed files with 14 additions and 7 deletions

View File

@ -22,7 +22,9 @@
#include "error.h"
std::string LAMMPS_NS::get_unit_for(const char* unit_style, Quantity quantity, Error* error) {
using namespace LAMMPS_NS;
std::string NetCDFUnits::get_unit_for(const char* unit_style, Quantity quantity, Error* error) {
if (!strcmp(unit_style, "lj")) {
if (quantity == Quantity::UNKNOWN) {
return "";