aboutsummaryrefslogtreecommitdiff
path: root/src/gemma.cpp
diff options
context:
space:
mode:
authorPjotr Prins2018-09-06 13:37:55 +0000
committerPjotr Prins2018-09-06 13:37:55 +0000
commit2ac63853ba5a836a5e4477bad0c1c56f0fa1dfa8 (patch)
treeb368e6beca176bbc35ad38a9e82d9218ac95ff42 /src/gemma.cpp
parent8b0a36e6dd6a4c21dece3fc94461bbad6c7da497 (diff)
downloadpangemma-2ac63853ba5a836a5e4477bad0c1c56f0fa1dfa8.tar.gz
Show warning on some unused matrices
Diffstat (limited to 'src/gemma.cpp')
-rw-r--r--src/gemma.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gemma.cpp b/src/gemma.cpp
index f928977..c3caa96 100644
--- a/src/gemma.cpp
+++ b/src/gemma.cpp
@@ -2837,14 +2837,14 @@ void GEMMA::BatchRun(PARAM &cPar) {
// release all matrices and vectors
gsl_matrix_safe_free(Y);
gsl_matrix_safe_free(W);
- gsl_matrix_safe_free(B);
- gsl_matrix_safe_free(se_B);
- gsl_matrix_safe_free(G);
+ gsl_matrix_warn_free(B); // sometimes unused
+ gsl_matrix_warn_free(se_B);
+ gsl_matrix_warn_free(G);
gsl_matrix_safe_free(U);
gsl_matrix_safe_free(UtW);
gsl_matrix_safe_free(UtY);
gsl_vector_safe_free(eval);
- gsl_vector_safe_free(env);
+ gsl_vector_free(env); // sometimes unused
}
// BSLMM