diff --git a/mex/sources/bytecode/bytecode.cc b/mex/sources/bytecode/bytecode.cc index d2f0f5d8e13d1b42fe56dbd6315e3460e28a89b5..3914df507c00fe4d3004340a32d5f15b37b20f9b 100644 --- a/mex/sources/bytecode/bytecode.cc +++ b/mex/sources/bytecode/bytecode.cc @@ -683,10 +683,10 @@ mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) mexWarnMsgTxt("Not enough space. Filename is truncated."); string file_name = fname; - if (stack_solve_algo == 7 && !steady_state) + if (stack_solve_algo == 7 && !steady_state && !print) mexErrMsgTxt("Bytecode: Can't use option stack_solve_algo=7\n"); - if (steady_state && !evaluate && (solve_algo < 5 || solve_algo > 8)) + if (steady_state && !evaluate && !print && (solve_algo < 5 || solve_algo > 8)) mexErrMsgTxt("Bytecode: solve_algo must be between 5 and 8 when using the internal steady state solver\n"); size_t size_of_direction = col_y*row_y*sizeof(double);