switch to 100 chars columnwidth and apply clang-format to a few .cpp files

This commit is contained in:
Axel Kohlmeyer 2021-05-11 21:50:52 -04:00
parent d8291eea7b
commit 68160e3f22
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
4 changed files with 642 additions and 624 deletions

View File

@ -16,7 +16,7 @@ BraceWrapping:
BreakBeforeBraces: Custom BreakBeforeBraces: Custom
BreakConstructorInitializers: AfterColon BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterColon BreakInheritanceList: AfterColon
ColumnLimit: 80 ColumnLimit: 100
IndentCaseLabels: true IndentCaseLabels: true
IndentWidth: 2 IndentWidth: 2
NamespaceIndentation: Inner NamespaceIndentation: Inner

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://lammps.sandia.gov/, Sandia National Laboratories https://lammps.sandia.gov/, Sandia National Laboratories
@ -13,19 +12,17 @@
------------------------------------------------------------------------- */ ------------------------------------------------------------------------- */
#include "lammps.h" #include "lammps.h"
#include "input.h" #include "input.h"
#include <mpi.h>
#include <cstdlib>
#if defined(LAMMPS_TRAP_FPE) && defined(_GNU_SOURCE)
#include <fenv.h>
#endif
#if defined(LAMMPS_EXCEPTIONS) #if defined(LAMMPS_EXCEPTIONS)
#include "exceptions.h" #include "exceptions.h"
#endif #endif
#include <cstdlib>
#if defined(LAMMPS_TRAP_FPE) && defined(_GNU_SOURCE)
#include <fenv.h>
#endif
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- /* ----------------------------------------------------------------------

View File

@ -19,9 +19,8 @@
using namespace LAMMPS_NS; using namespace LAMMPS_NS;
TabularFunction::TabularFunction() : TabularFunction::TabularFunction() :
size(0), xmin(0.0), xmax(0.0), xmaxsq(0.0), rdx(0.0), vmax(0.0), size(0), xmin(0.0), xmax(0.0), xmaxsq(0.0), rdx(0.0), vmax(0.0), xs(nullptr), ys(nullptr),
xs(nullptr), ys(nullptr), ys1(nullptr), ys2(nullptr), ys3(nullptr), ys1(nullptr), ys2(nullptr), ys3(nullptr), ys4(nullptr), ys5(nullptr), ys6(nullptr)
ys4(nullptr), ys5(nullptr), ys6(nullptr)
{ {
} }

File diff suppressed because it is too large Load Diff