From eb037e2b78bc6bbeca8dde0c62f9d916e2a7bedc Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Thu, 27 Nov 2025 13:42:10 +0100 Subject: Introduce first test --- src/gemma.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/gemma.cpp') 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; } -- cgit 1.4.1