aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPjotr Prins2017-10-26 08:07:28 +0000
committerPjotr Prins2017-10-26 08:07:28 +0000
commit3f2ebeba716ccc04f08e4245db4ffbc377c10206 (patch)
tree566fb7c2b5e8268ebc7d871c2fc88e1ca83c06b3 /src
parentf9eacf6637b091c794a4692cfd0646c9a5bcf35a (diff)
downloadpangemma-3f2ebeba716ccc04f08e4245db4ffbc377c10206.tar.gz
VERSION now contains the GEMMA version number. A script generates a header
file named ./src/version.h. See Makefile for details.
Diffstat (limited to 'src')
-rw-r--r--src/gemma.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gemma.cpp b/src/gemma.cpp
index 650ba43..2c54672 100644
--- a/src/gemma.cpp
+++ b/src/gemma.cpp
@@ -57,10 +57,11 @@ extern "C" {
#include "varcov.h"
#include "vc.h"
#include "debug.h"
+#include "version.h"
using namespace std;
-GEMMA::GEMMA(void) : version("0.97.3"), date("10/10/2017"), year("2017") {}
+GEMMA::GEMMA(void) : version(GEMMA_VERSION), date(GEMMA_DATE), year(GEMMA_YEAR) {}
void gemma_gsl_error_handler (const char * reason,
const char * file,
@@ -3103,7 +3104,7 @@ void GEMMA::WriteLog(int argc, char **argv, PARAM &cPar) {
}
outfile << "##" << endl;
- outfile << "## GEMMA Version = " << version << endl;
+ outfile << "## GEMMA Version = " << version << " (" << date << ")" << endl;
outfile << "## GSL Version = " << GSL_VERSION << endl;
outfile << "## Eigen Version = " << EIGEN_WORLD_VERSION << "." << EIGEN_MAJOR_VERSION << "." << EIGEN_MINOR_VERSION << endl;
#ifdef OPENBLAS