about summary refs log tree commit diff
path: root/src/gemma.cpp
diff options
context:
space:
mode:
authorPjotr Prins2025-11-27 13:42:10 +0100
committerPjotr Prins2025-11-27 13:42:10 +0100
commiteb037e2b78bc6bbeca8dde0c62f9d916e2a7bedc (patch)
treef46bf143b93efbffdb03a0a057f777626f558243 /src/gemma.cpp
parentfad3d64d66a4705b3da33a90480c7e24c35b9c44 (diff)
downloadpangemma-eb037e2b78bc6bbeca8dde0c62f9d916e2a7bedc.tar.gz
Introduce first test
Diffstat (limited to 'src/gemma.cpp')
-rw-r--r--src/gemma.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gemma.cpp b/src/gemma.cpp
index 38b4913..fdb19fd 100644
--- a/src/gemma.cpp
+++ b/src/gemma.cpp
@@ -1919,11 +1919,15 @@ void GEMMA::BatchRun(PARAM &cPar) {
 
     time_start = clock();
 
+    if (cPar.error == true) {
+      cout << "error! failed to prepare for calculating relatedness matrix. " << endl;
+      return;
+    }
     cPar.CalcKin(G);
 
     cPar.time_G = (clock() - time_start) / (double(CLOCKS_PER_SEC) * 60.0);
     if (cPar.error == true) {
-      cout << "error! fail to calculate relatedness matrix. " << endl;
+      cout << "error! failed to calculate relatedness matrix. " << endl;
       return;
     }