aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gensvm_zv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gensvm_zv.c b/src/gensvm_zv.c
index 81a5354..05950ea 100644
--- a/src/gensvm_zv.c
+++ b/src/gensvm_zv.c
@@ -106,7 +106,8 @@ void gensvm_calculate_ZV_sparse(struct GenModel *model,
void gensvm_calculate_ZV_dense(struct GenModel *model,
struct GenData *data, double *ZV)
{
- long n = model->n;
+ // use n from data, assume m and K are the same between model and data
+ long n = data->n;
long m = model->m;
long K = model->K;