convert defines into static constexpr

This commit is contained in:
Axel Kohlmeyer
2024-01-18 23:59:33 -05:00
parent 48e83b2298
commit 3ae4779c7f
29 changed files with 68 additions and 67 deletions

View File

@ -62,10 +62,11 @@ static const char cite_neb_spin[] =
"doi={10.1016/j.cpc.2015.07.001}\n"
"}\n\n";
#define MAXLINE 256
#define CHUNK 1024
static constexpr int MAXLINE = 256;
static constexpr int CHUNK = 1024;
// 8 attributes: tag, spin norm, position (3), spin direction (3)
#define ATTRIBUTE_PERLINE 8
static constexpr int ATTRIBUTE_PERLINE = 8;
/* ---------------------------------------------------------------------- */