apply clang-format

This commit is contained in:
Axel Kohlmeyer
2021-12-21 13:20:25 -05:00
parent c780768e91
commit 364d0be28c
4 changed files with 109 additions and 105 deletions

View File

@ -29,7 +29,9 @@ DumpStyle(netcdf,DumpNetCDF);
#include "dump_custom.h" #include "dump_custom.h"
namespace LAMMPS_NS { 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 NC_FIELD_NAME_MAX = 100;
const int DUMP_NC_MAX_DIMS = 100; const int DUMP_NC_MAX_DIMS = 100;

View File

@ -29,7 +29,9 @@ DumpStyle(netcdf/mpiio,DumpNetCDFMPIIO);
#include "dump_custom.h" #include "dump_custom.h"
namespace LAMMPS_NS { 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 NC_MPIIO_FIELD_NAME_MAX = 100;
const int DUMP_NC_MPIIO_MAX_DIMS = 100; const int DUMP_NC_MPIIO_MAX_DIMS = 100;

View File

@ -1,4 +1,3 @@
// clang-format off
/* ---------------------------------------------------------------------- /* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
https://www.lammps.org/, Sandia National Laboratories https://www.lammps.org/, Sandia National Laboratories
@ -24,7 +23,8 @@
using namespace LAMMPS_NS; 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 (!strcmp(unit_style, "lj")) {
if (quantity == Quantity::UNKNOWN) { if (quantity == Quantity::UNKNOWN) {
return ""; return "";

View File

@ -39,8 +39,8 @@ enum Quantity : int {
// get the name of the unit for the given `quantity` in the given LAMMPS // get the name of the unit for the given `quantity` in the given LAMMPS
// `unit_style` any error will be reported through `error` // `unit_style` any error will be reported through `error`
std::string get_unit_for(const char *unit_style, Quantity quantity, Error *error); std::string get_unit_for(const char *unit_style, Quantity quantity, Error *error);
} } // namespace NetCDFUnits
} } // namespace LAMMPS_NS
#endif #endif
#endif #endif