From 1ed765b8c43490e0b97b67f99ef468d55612b039 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer <jpfeifer@gmx.de> Date: Fri, 25 Mar 2022 14:22:46 +0100 Subject: [PATCH] perfect_foresight_solver_core.m: fix Fortran not --- matlab/perfect-foresight-models/perfect_foresight_solver_core.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/perfect-foresight-models/perfect_foresight_solver_core.m b/matlab/perfect-foresight-models/perfect_foresight_solver_core.m index 13bfed9a8c..b8d6d928f0 100644 --- a/matlab/perfect-foresight-models/perfect_foresight_solver_core.m +++ b/matlab/perfect-foresight-models/perfect_foresight_solver_core.m @@ -47,7 +47,7 @@ if options_.linear && (isequal(options_.stack_solve_algo, 0) || isequal(options_ options_.linear_approximation = true; end -if options_.slowc != 1 && (options_.block || options_.bytecode) +if options_.slowc ~= 1 && (options_.block || options_.bytecode) % The code is buggy and leads to wrong results, so forbid this combination error('Changing the value of the slowc option is not supported with block and/or bytecode option') end -- GitLab