aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxiangzhou2017-05-09 15:07:10 -0400
committerGitHub2017-05-09 15:07:10 -0400
commit3ed15d7061fdac57c07da0fba087e9e69ac0ec42 (patch)
tree9e38dfd1cae2ee320ead66a051c1dcd662298523
parent09c9dcaae506058e1120eb55896fdcc2715e90a9 (diff)
downloadpangemma-3ed15d7061fdac57c07da0fba087e9e69ac0ec42.tar.gz
fixed #36
-rw-r--r--src/mvlmm.cpp6
1 files changed, 3 insertions, 3 deletions
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;}