Skip to content
Snippets Groups Projects
Verified Commit 533664d2 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

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).

(cherry picked from commit d62a09cd)
parent ceff2dfe
Branches
Tags
No related merge requests found
......@@ -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;
......
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
\ No newline at end of file
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment