aboutsummaryrefslogtreecommitdiff
path: root/src/lmm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lmm.cpp')
-rw-r--r--src/lmm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lmm.cpp b/src/lmm.cpp
index c0ecb2a..4bca3fb 100644
--- a/src/lmm.cpp
+++ b/src/lmm.cpp
@@ -1424,7 +1424,7 @@ void LMM::Analyze(std::function< SnpNameValues(size_t) >& fetch_snp,
gsl_vector_memcpy(&Xlarge_col.vector, x);
c++; // count SNPs going in
- if (c == msize)
+ if (c % msize == 0)
batch_compute(msize);
}
batch_compute(c % msize);