Commit f4b25efc authored by Marco Ratto's avatar Marco Ratto Committed by Stéphane Adjemian (Charybdis)

bug fix with initial_date for conditional shock decomposition

parent a63bc5b7
......@@ -134,7 +134,7 @@ steady_state = oo_.steady_state;
if isequal(type,'aoa') && isstruct(q2a) && realtime_
% take all dates where realtime is saved
qqq=initial_date+options_.shock_decomp.save_realtime(:)-1;
qqq=options_.initial_date+options_.shock_decomp.save_realtime(:)-1;
% take the first Q4 of saved realtime
t0=min(options_.shock_decomp.save_realtime(qqq.time(:,2)==4));
if isempty(t0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment