From 899ca559c2db95be630daff6942e117f4b3384f6 Mon Sep 17 00:00:00 2001
From: Marcin Kirsz <mkirsz@ed.ac.uk>
Date: Tue, 8 Oct 2024 13:44:03 +0100
Subject: [PATCH] fix for solver when N > M

---
 trainer.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/trainer.h b/trainer.h
index f4f9025..711a170 100644
--- a/trainer.h
+++ b/trainer.h
@@ -259,7 +259,7 @@ class MPI_Trainer: public Trainer {
       // Distribute data in 2D block cyclic 
       DesignMatrix<DM_Function_Base&> dm2(*fb, config);
       dm2.Phi.resize(phi_rows2,phi_cols2);
-      dm2.T.resize(b_lda2);
+      dm2.T.resize(lda2);
       dm2.Tlabels.resize(phi_rows2);
 
       pdgemr2d_(&PHI_rows, &PHI_cols, dm.Phi.ptr(), &ione, &ione, descPHI,
-- 
GitLab