From c51fccf5c5d198e6b69c3761e87a863bafba21c6 Mon Sep 17 00:00:00 2001 From: "Matthew L. Fidler" Date: Fri, 19 Jan 2024 12:10:53 -0600 Subject: [PATCH] Use t0 instead of 0 --- src/comp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comp.c b/src/comp.c index d518f76f..382668f1 100644 --- a/src/comp.c +++ b/src/comp.c @@ -379,7 +379,7 @@ double linCmtCompA(rx_solve *rx, unsigned int id, double _t, int linCmt, xp = xout = getTime__(ind->ix[ind->idx], ind, 0); yp = ypLast = Alast0; } else { - xp = (ind->idx == 0 ? 0.0 : getTime_(ind->ix[ind->idx-1], ind)); + xp = (ind->idx == 0 ? getTime_(ind->ix[0], ind) : getTime_(ind->ix[ind->idx-1], ind)); xout = getTime__(ind->ix[ind->idx], ind, 0); ypLast=getAdvan(ind->idx-1); }