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
Sébastien Villemot 2021-09-21 16:21:45 +02:00
parent c5120e1278
commit d62a09cdef
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
3 changed files with 5 additions and 7 deletions

2
tests/.gitignore vendored
View File

@ -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

View File

@ -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;

View File

@ -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