From f5e8aeb552bbcf148b53fa2091db41b77f4ef83d Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Mon, 27 Jul 2015 18:10:27 +0200
Subject: [PATCH] Add missing return statement to evaluate_steady_state_file.m

Otherwise, the code will subsequently crash if the steady state file does not return a conformably sized vector, although an error code was returned
---
 matlab/evaluate_steady_state_file.m | 1 +
 1 file changed, 1 insertion(+)

diff --git a/matlab/evaluate_steady_state_file.m b/matlab/evaluate_steady_state_file.m
index 12d361a371..d83045fd08 100644
--- a/matlab/evaluate_steady_state_file.m
+++ b/matlab/evaluate_steady_state_file.m
@@ -57,6 +57,7 @@ function [ys,params,info] = evaluate_steady_state_file(ys_init,exo_ss,M,options)
     if check
         info(1) = 19;
         info(2) = NaN;
+        return
     end
     
     if M.param_nbr > 0
-- 
GitLab