put contents of netcdf_units into NetCDFUnits namespace
This commit is contained in:
@ -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 "";
|
||||
|
||||
Reference in New Issue
Block a user