tests/ep/rbcii.mod: use supported mechanism for user-provided steady state file
Incidentally, this should fix random crashes under Octave (where the manually copied steady state file was not correctly detected by the interpreter).pac-components
parent
c5120e1278
commit
d62a09cdef
|
@ -48,7 +48,7 @@ wsOct
|
|||
!/ep/ar_steadystate.m
|
||||
!/ep/exact_solution.m
|
||||
!/ep/mean_preserving_spread.m
|
||||
!/ep/rbcii_steady_state.m
|
||||
!/ep/rbcii_steadystate.m
|
||||
!/estimation/fsdat_simul.m
|
||||
!/estimation/method_of_moments/AnScho/AnScho_MoM_data_2.mat
|
||||
!/estimation/method_of_moments/RBC/RBC_MoM_steady_helper.m
|
||||
|
|
|
@ -54,10 +54,6 @@ model(use_dll);
|
|||
|
||||
end;
|
||||
|
||||
// Write analytical steady state file (without globals)
|
||||
options_.steadystate_flag = 2;
|
||||
copyfile('rbcii_steady_state.m','+rbcii/steadystate.m');
|
||||
|
||||
@#if extended_path_version
|
||||
|
||||
shocks;
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
function [ys_, params, info] = rbcii_steadystate2(ys_, exo_, params)
|
||||
function [ys_, params, info] = rbcii_steadystate(ys_, exo_, M_, options_)
|
||||
|
||||
params = M_.params;
|
||||
|
||||
% Flag initialization (equal to zero if the deterministic steady state exists)
|
||||
info = 0;
|
||||
|
||||
|
@ -85,4 +87,4 @@ function [labour,info] = l_solver(labour,alpha,psi,theta,effstar,kstar,maxiter)
|
|||
condition = abs(r)>1e-9;
|
||||
iteration = iteration + 1;
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue