proprocessor: block code bug fix: M and oo not being passed to solve_two_boundaries
parent
db6be25c3a
commit
aa0af5e556
|
@ -32,6 +32,8 @@ function y = solve_two_boundaries(fname, y, x, params, steady_state, y_index, nz
|
||||||
% - 2 GMRES
|
% - 2 GMRES
|
||||||
% - 3 BicGStab
|
% - 3 BicGStab
|
||||||
% - 4 Optimal path length
|
% - 4 Optimal path length
|
||||||
|
% M [structure] Model description
|
||||||
|
% oo [structure] Results
|
||||||
%
|
%
|
||||||
% OUTPUTS
|
% OUTPUTS
|
||||||
% y [matrix] All endogenous variables of the model
|
% y [matrix] All endogenous variables of the model
|
||||||
|
|
|
@ -2054,7 +2054,7 @@ DynamicModel::writeSparseDynamicMFile(const string &dynamic_basename, const stri
|
||||||
<<", options_.periods, " << max_leadlag_block[block].first
|
<<", options_.periods, " << max_leadlag_block[block].first
|
||||||
<<", " << max_leadlag_block[block].second
|
<<", " << max_leadlag_block[block].second
|
||||||
<<", " << blocks_linear[block]
|
<<", " << blocks_linear[block]
|
||||||
<<", blck_num, y_kmin, options_.simul.maxit, options_.solve_tolf, options_.slowc, " << cutoff << ", options_.stack_solve_algo);\n";
|
<<", blck_num, y_kmin, options_.simul.maxit, options_.solve_tolf, options_.slowc, " << cutoff << ", options_.stack_solve_algo, M_, oo_);\n";
|
||||||
mDynamicModelFile << " tmp = y(:,M_.block_structure.block(" << block + 1 << ").variable);\n";
|
mDynamicModelFile << " tmp = y(:,M_.block_structure.block(" << block + 1 << ").variable);\n";
|
||||||
mDynamicModelFile << " if any(isnan(tmp) | isinf(tmp))\n";
|
mDynamicModelFile << " if any(isnan(tmp) | isinf(tmp))\n";
|
||||||
mDynamicModelFile << " disp(['Inf or Nan value during the resolution of block " << block <<"']);\n";
|
mDynamicModelFile << " disp(['Inf or Nan value during the resolution of block " << block <<"']);\n";
|
||||||
|
|
Loading…
Reference in New Issue