apply clang-format
This commit is contained in:
@ -29,7 +29,9 @@ DumpStyle(netcdf,DumpNetCDF);
|
||||
#include "dump_custom.h"
|
||||
|
||||
namespace LAMMPS_NS {
|
||||
namespace NetCDFUnits {enum Quantity : int;} // forward declaration
|
||||
namespace NetCDFUnits {
|
||||
enum Quantity : int;
|
||||
} // namespace NetCDFUnits
|
||||
|
||||
const int NC_FIELD_NAME_MAX = 100;
|
||||
const int DUMP_NC_MAX_DIMS = 100;
|
||||
|
||||
@ -29,7 +29,9 @@ DumpStyle(netcdf/mpiio,DumpNetCDFMPIIO);
|
||||
#include "dump_custom.h"
|
||||
|
||||
namespace LAMMPS_NS {
|
||||
namespace NetCDFUnits {enum Quantity : int;} // forward declaration
|
||||
namespace NetCDFUnits {
|
||||
enum Quantity : int;
|
||||
} // namespace NetCDFUnits
|
||||
|
||||
const int NC_MPIIO_FIELD_NAME_MAX = 100;
|
||||
const int DUMP_NC_MPIIO_MAX_DIMS = 100;
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
// clang-format off
|
||||
/* ----------------------------------------------------------------------
|
||||
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
|
||||
https://www.lammps.org/, Sandia National Laboratories
|
||||
@ -24,7 +23,8 @@
|
||||
|
||||
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, Quantity quantity, Error *error)
|
||||
{
|
||||
if (!strcmp(unit_style, "lj")) {
|
||||
if (quantity == Quantity::UNKNOWN) {
|
||||
return "";
|
||||
|
||||
@ -26,21 +26,21 @@ namespace LAMMPS_NS {
|
||||
class Error;
|
||||
|
||||
namespace NetCDFUnits {
|
||||
// type of quantity for per-atom values (used to get the unit)
|
||||
enum Quantity : int {
|
||||
// type of quantity for per-atom values (used to get the unit)
|
||||
enum Quantity : int {
|
||||
UNKNOWN = 0,
|
||||
TIME,
|
||||
DISTANCE,
|
||||
VELOCITY,
|
||||
FORCE,
|
||||
DIPOLE_MOMENT,
|
||||
};
|
||||
};
|
||||
|
||||
// get the name of the unit for the given `quantity` in the given LAMMPS
|
||||
// `unit_style` any error will be reported through `error`
|
||||
std::string get_unit_for(const char* unit_style, Quantity quantity, Error* error);
|
||||
}
|
||||
}
|
||||
// get the name of the unit for the given `quantity` in the given LAMMPS
|
||||
// `unit_style` any error will be reported through `error`
|
||||
std::string get_unit_for(const char *unit_style, Quantity quantity, Error *error);
|
||||
} // namespace NetCDFUnits
|
||||
} // namespace LAMMPS_NS
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user