Commit 90f0586c authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

include compilation date as an example for embedding info, that is not a define

parent c371ce10
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
/lmp_*

/style_*.h
/lmpcompiledate.h

/*_gpu.h
/*_gpu.cpp
+2 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@ style_region.h
style_neigh_bin.h
style_neigh_pair.h
style_neigh_stencil.h
# other auto-generated files
lmpcompiledate.h
# deleted on 4 April 2018
pair_kim_version.h
# deleted on 15 December 2017
+3 −3
Original line number Diff line number Diff line
@@ -978,8 +978,6 @@ void print_style(FILE *fp, const char *str, int &pos)
  }
}

#include "lmpcompiledate.h"

static const char lammps_config_options[]
= "LAMMPS compile time settings:\n\n"
  "Integer sizes setting:    "
@@ -1036,8 +1034,10 @@ static const char lammps_config_options[]
#endif
  "\n";

#include "lmpcompiledate.h"

void LAMMPS::print_config(FILE *fp)
{
  fprintf(fp,"LAMMPS compiled on: %s\n\n",lammps_compile_date);
  fputs(lammps_config_options,fp);
  fprintf(fp,"LAMMPS compiled on: %s\n",lammps_compile_date); 
}