From 1f193e02e0eb8c369bf727808628a1bef434ec32 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 11 May 2018 23:56:38 -0400 Subject: [PATCH] update to c++ style include header syntax --- examples/COUPLE/lammps_quest/lmpqst.cpp | 8 ++++---- examples/COUPLE/lammps_spparks/lmpspk.cpp | 8 ++++---- examples/COUPLE/library/error.cpp | 4 ++-- examples/COUPLE/library/files.cpp | 4 ++-- examples/COUPLE/library/irregular.cpp | 6 +++--- examples/COUPLE/library/lammps_data_write.cpp | 4 ++-- examples/COUPLE/library/lammps_data_write.h | 2 +- examples/COUPLE/library/many2many.cpp | 4 ++-- examples/COUPLE/library/many2one.cpp | 6 +++--- examples/COUPLE/library/memory.cpp | 4 ++-- examples/COUPLE/library/one2many.cpp | 2 +- examples/COUPLE/library/send2one.cpp | 6 +++--- examples/COUPLE/multiple/multiple.cpp | 8 ++++---- examples/COUPLE/simple/simple.cpp | 17 +++++++++-------- 14 files changed, 42 insertions(+), 41 deletions(-) diff --git a/examples/COUPLE/lammps_quest/lmpqst.cpp b/examples/COUPLE/lammps_quest/lmpqst.cpp index e7f2d92c1d..76a89f1d06 100644 --- a/examples/COUPLE/lammps_quest/lmpqst.cpp +++ b/examples/COUPLE/lammps_quest/lmpqst.cpp @@ -6,10 +6,10 @@ // in.lammps = LAMMPS input script // in.quest = Quest input script -#include "mpi.h" -#include "stdio.h" -#include "stdlib.h" -#include "string.h" +#include +#include +#include +#include #include "stdint.h" #include "many2one.h" diff --git a/examples/COUPLE/lammps_spparks/lmpspk.cpp b/examples/COUPLE/lammps_spparks/lmpspk.cpp index da6d252369..2e234c89f1 100644 --- a/examples/COUPLE/lammps_spparks/lmpspk.cpp +++ b/examples/COUPLE/lammps_spparks/lmpspk.cpp @@ -7,10 +7,10 @@ // Sfactor = multiplier on strain effect // in.spparks = SPPARKS input script -#include "mpi.h" -#include "stdio.h" -#include "stdlib.h" -#include "string.h" +#include +#include +#include +#include #include "lammps_data_write.h" #include "many2many.h" diff --git a/examples/COUPLE/library/error.cpp b/examples/COUPLE/library/error.cpp index f538dce23f..b7a59b8c72 100644 --- a/examples/COUPLE/library/error.cpp +++ b/examples/COUPLE/library/error.cpp @@ -1,6 +1,6 @@ #include -#include -#include +#include +#include #include "error.h" /* ---------------------------------------------------------------------- */ diff --git a/examples/COUPLE/library/files.cpp b/examples/COUPLE/library/files.cpp index 0d98e69a9e..d4d707a6c9 100644 --- a/examples/COUPLE/library/files.cpp +++ b/examples/COUPLE/library/files.cpp @@ -1,5 +1,5 @@ -#include -#include +#include +#include #include "files.h" #define MAXLINE 256 diff --git a/examples/COUPLE/library/irregular.cpp b/examples/COUPLE/library/irregular.cpp index aea9b8332c..b822fc859d 100644 --- a/examples/COUPLE/library/irregular.cpp +++ b/examples/COUPLE/library/irregular.cpp @@ -1,6 +1,6 @@ -#include "stdio.h" -#include "stdlib.h" -#include "string.h" +#include +#include +#include #include "irregular.h" #include "memory.h" #include "error.h" diff --git a/examples/COUPLE/library/lammps_data_write.cpp b/examples/COUPLE/library/lammps_data_write.cpp index cb525871e2..9d1039ff47 100644 --- a/examples/COUPLE/library/lammps_data_write.cpp +++ b/examples/COUPLE/library/lammps_data_write.cpp @@ -1,6 +1,6 @@ #include -#include -#include +#include +#include #include "lammps_data_write.h" #include "memory.h" #include "error.h" diff --git a/examples/COUPLE/library/lammps_data_write.h b/examples/COUPLE/library/lammps_data_write.h index 9a6de2b63c..0192c17e29 100644 --- a/examples/COUPLE/library/lammps_data_write.h +++ b/examples/COUPLE/library/lammps_data_write.h @@ -1,7 +1,7 @@ #ifndef LAMMPS_DATA_WRITE_H #define LAMMPS_DATA_WRITE_H -#include +#include #include "send2one.h" class LAMMPSDataWrite : public Send2One { diff --git a/examples/COUPLE/library/many2many.cpp b/examples/COUPLE/library/many2many.cpp index 3ca9ca63bb..cbf5da8e6e 100644 --- a/examples/COUPLE/library/many2many.cpp +++ b/examples/COUPLE/library/many2many.cpp @@ -1,6 +1,6 @@ #include -#include -#include +#include +#include #include "many2many.h" #include "irregular.h" #include "memory.h" diff --git a/examples/COUPLE/library/many2one.cpp b/examples/COUPLE/library/many2one.cpp index 5b5467aa61..ba227bf471 100644 --- a/examples/COUPLE/library/many2one.cpp +++ b/examples/COUPLE/library/many2one.cpp @@ -1,6 +1,6 @@ -#include "mpi.h" -#include "stdio.h" -#include "stdlib.h" +#include +#include +#include #include "many2one.h" #include "memory.h" diff --git a/examples/COUPLE/library/memory.cpp b/examples/COUPLE/library/memory.cpp index 9d299a8376..98ef8bafc0 100644 --- a/examples/COUPLE/library/memory.cpp +++ b/examples/COUPLE/library/memory.cpp @@ -1,6 +1,6 @@ #include -#include -#include +#include +#include #include "memory.h" #include "error.h" diff --git a/examples/COUPLE/library/one2many.cpp b/examples/COUPLE/library/one2many.cpp index 5c4a1799ba..aa4a03720a 100644 --- a/examples/COUPLE/library/one2many.cpp +++ b/examples/COUPLE/library/one2many.cpp @@ -1,5 +1,5 @@ #include -#include +#include #include "one2many.h" #include "memory.h" diff --git a/examples/COUPLE/library/send2one.cpp b/examples/COUPLE/library/send2one.cpp index d969b4678d..d35cf19a4e 100644 --- a/examples/COUPLE/library/send2one.cpp +++ b/examples/COUPLE/library/send2one.cpp @@ -1,6 +1,6 @@ -#include "mpi.h" -#include "stdlib.h" -#include "stdio.h" +#include +#include +#include #include "send2one.h" #include "memory.h" #include "error.h" diff --git a/examples/COUPLE/multiple/multiple.cpp b/examples/COUPLE/multiple/multiple.cpp index f2de959bac..c58c3c78a9 100644 --- a/examples/COUPLE/multiple/multiple.cpp +++ b/examples/COUPLE/multiple/multiple.cpp @@ -23,10 +23,10 @@ // Tdelta = incremental temperature for each of N runs // See README for compilation instructions -#include "stdio.h" -#include "stdlib.h" -#include "string.h" -#include "mpi.h" +#include +#include +#include +#include #include "lammps.h" // these are LAMMPS include files #include "input.h" diff --git a/examples/COUPLE/simple/simple.cpp b/examples/COUPLE/simple/simple.cpp index 912f4b8689..a76ed8a6e9 100644 --- a/examples/COUPLE/simple/simple.cpp +++ b/examples/COUPLE/simple/simple.cpp @@ -19,15 +19,16 @@ // in.lammps = LAMMPS input script // See README for compilation instructions -#include "stdio.h" -#include "stdlib.h" -#include "string.h" -#include "mpi.h" +#include +#include +#include +#include -#include "lammps.h" // these are LAMMPS include files -#include "input.h" -#include "atom.h" -#include "library.h" +// these are LAMMPS include files +#include +#include +#include +#include using namespace LAMMPS_NS;