diff --git a/trainer.h b/trainer.h
index dd6723a4952c6a01bd73a3b5c4efc30a3a9439c9..3606b49d2ec41b251e375fe0259f053663fbe6cc 100644
--- a/trainer.h
+++ b/trainer.h
@@ -249,13 +249,13 @@ class MPI_Trainer: public Trainer {
         printf("HINT: Check these CONFIG parameters: MPIWPCKG, MBLOCK, NBLOCK\n");
       }
 
-      int lda1 = PHI_rows > PHI_cols ? phi_rows1 : phi_cols1;
-      int lda2 = PHI_rows > PHI_cols ? phi_rows2 : phi_cols2;
+      //int lda1 = PHI_rows > PHI_cols ? phi_rows1 : phi_cols1;
+      //int lda2 = PHI_rows > PHI_cols ? phi_rows2 : phi_cols2;
 
       descinit_( sol,  &PHI_cols, &ione, &rnb1, &cnb1, &izero, 
-          &izero, &context1, /*leading dimension*/&phi_rows1, &info3);
+          &izero, &context1, /*leading dimension*/&phi_cols1, &info3);
       descinit_( sol2,  &PHI_cols, &ione, &rnb2, &cnb2, &izero, 
-          &izero, &context2, /*leading dimension*/&phi_rows2, &info4);
+          &izero, &context2, /*leading dimension*/&phi_cols1, &info4);
 
       if(info3 != 0) {
         printf("Error in descinit 1c, info = %d\n", info3);