From 80ad5bf9df024bdbb2df8f50347efe479ff97f7d Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Date: Wed, 30 Sep 2015 12:53:53 -0300 Subject: [PATCH] Initialize additional parameters for Extended and Veloclinic models Fixes #1573 --- src/PDModel.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/PDModel.cpp b/src/PDModel.cpp index 1d6061487..c3999a00e 100644 --- a/src/PDModel.cpp +++ b/src/PDModel.cpp @@ -451,7 +451,8 @@ void WSModel::onIntervalsChanged() // Currently deciding which of the three formulations to use // as the base for GoldenCheetah (we have enough models already !) MultiModel::MultiModel(Context *context) : - PDModel(context) + PDModel(context), + variant(0), w1(0), p1(0), p2(0), tau1(0), tau2(0), alpha(0), beta(0) { // set default intervals to search CP 30-60 // uses the same as the 3 parameter model @@ -594,7 +595,9 @@ void MultiModel::onIntervalsChanged() // Extended CP Model // ExtendedModel::ExtendedModel(Context *context) : - PDModel(context) + PDModel(context), + paa(0), paa_dec(0), ecp(0), etau(0), ecp_del(0), tau_del(0), ecp_dec(0), + ecp_dec_del(0) { // set default intervals to search Extended CP sanI1=20;