From 3ed15d7061fdac57c07da0fba087e9e69ac0ec42 Mon Sep 17 00:00:00 2001 From: xiangzhou Date: Tue, 9 May 2017 15:07:10 -0400 Subject: fixed #36 --- src/mvlmm.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/mvlmm.cpp b/src/mvlmm.cpp index 5deda06..0049972 100644 --- a/src/mvlmm.cpp +++ b/src/mvlmm.cpp @@ -3315,7 +3315,7 @@ void MVLMM::Analyzebgen (const gsl_matrix *U, const gsl_vector *eval, const gsl_ gsl_vector_memcpy (&Xlarge_col.vector, x); csnp++; - if (csnp%msize==0 || c==t_last ) { + if (csnp%msize==0 || csnp==t_last ) { size_t l=0; if (csnp%msize==0) {l=msize;} else {l=csnp%msize;} @@ -3714,7 +3714,7 @@ void MVLMM::AnalyzeBimbam (const gsl_matrix *U, const gsl_vector *eval, const gs gsl_vector_memcpy (&Xlarge_col.vector, x); csnp++; - if (csnp%msize==0 || c==t_last ) { + if (csnp%msize==0 || csnp==t_last ) { size_t l=0; if (csnp%msize==0) {l=msize;} else {l=csnp%msize;} @@ -4148,7 +4148,7 @@ void MVLMM::AnalyzePlink (const gsl_matrix *U, const gsl_vector *eval, const gsl gsl_vector_memcpy (&Xlarge_col.vector, x); csnp++; - if (csnp%msize==0 || c==t_last ) { + if (csnp%msize==0 || csnp==t_last ) { size_t l=0; if (csnp%msize==0) {l=msize;} else {l=csnp%msize;} -- cgit v1.2.3