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

This commit is contained in:
Axel Kohlmeyer
2018-05-09 13:34:10 -04:00
parent c371ce1005
commit 90f0586c9e
3 changed files with 6 additions and 3 deletions

1
src/.gitignore vendored
View File

@ -5,6 +5,7 @@
/lmp_* /lmp_*
/style_*.h /style_*.h
/lmpcompiledate.h
/*_gpu.h /*_gpu.h
/*_gpu.cpp /*_gpu.cpp

View File

@ -16,6 +16,8 @@ style_region.h
style_neigh_bin.h style_neigh_bin.h
style_neigh_pair.h style_neigh_pair.h
style_neigh_stencil.h style_neigh_stencil.h
# other auto-generated files
lmpcompiledate.h
# deleted on 4 April 2018 # deleted on 4 April 2018
pair_kim_version.h pair_kim_version.h
# deleted on 15 December 2017 # deleted on 15 December 2017

View File

@ -978,8 +978,6 @@ void print_style(FILE *fp, const char *str, int &pos)
} }
} }
#include "lmpcompiledate.h"
static const char lammps_config_options[] static const char lammps_config_options[]
= "LAMMPS compile time settings:\n\n" = "LAMMPS compile time settings:\n\n"
"Integer sizes setting: " "Integer sizes setting: "
@ -1036,8 +1034,10 @@ static const char lammps_config_options[]
#endif #endif
"\n"; "\n";
#include "lmpcompiledate.h"
void LAMMPS::print_config(FILE *fp) void LAMMPS::print_config(FILE *fp)
{ {
fprintf(fp,"LAMMPS compiled on: %s\n\n",lammps_compile_date);
fputs(lammps_config_options,fp); fputs(lammps_config_options,fp);
fprintf(fp,"LAMMPS compiled on: %s\n",lammps_compile_date);
} }