Block solvers: improvement to error messages
– Do not mention internal options_ structure – Remain agnostic about whether we are in a steady state or a deterministic simulation [skip ci]remove-submodule
parent
c1b78e26ac
commit
396267260a
|
@ -152,9 +152,9 @@ for it_=start:incr:finish
|
||||||
else
|
else
|
||||||
if verbose
|
if verbose
|
||||||
if cutoff==0
|
if cutoff==0
|
||||||
fprintf('Error in simul: Convergence not achieved in block %d, at time %d, after %d iterations.\n Increase "options_.simul.maxit".\n',Block_Num, it_, iter);
|
fprintf('Convergence not achieved in block %d, at time %d, after %d iterations.\n Increase "maxit".\n',Block_Num, it_, iter);
|
||||||
else
|
else
|
||||||
fprintf('Error in simul: Convergence not achieved in block %d, at time %d, after %d iterations.\n Increase "options_.simul.maxit" or set "cutoff=0" in model options.\n',Block_Num, it_, iter);
|
fprintf('Convergence not achieved in block %d, at time %d, after %d iterations.\n Increase "maxit" or set "cutoff=0" in model options.\n',Block_Num, it_, iter);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
success = false;
|
success = false;
|
||||||
|
@ -273,9 +273,9 @@ for it_=start:incr:finish
|
||||||
if ~cvg
|
if ~cvg
|
||||||
if verbose
|
if verbose
|
||||||
if cutoff == 0
|
if cutoff == 0
|
||||||
fprintf('Error in simul: Convergence not achieved in block %d, at time %d, after %d iterations.\n Increase "options_.simul.maxit\".\n',Block_Num, it_,iter);
|
fprintf('Convergence not achieved in block %d, at time %d, after %d iterations.\n Increase "maxit".\n',Block_Num, it_,iter);
|
||||||
else
|
else
|
||||||
fprintf('Error in simul: Convergence not achieved in block %d, at time %d, after %d iterations.\n Increase "options_.simul.maxit" or set "cutoff=0" in model options.\n',Block_Num, it_,iter);
|
fprintf('Convergence not achieved in block %d, at time %d, after %d iterations.\n Increase "maxit" or set "cutoff=0" in model options.\n',Block_Num, it_,iter);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
success = false;
|
success = false;
|
||||||
|
|
|
@ -147,9 +147,9 @@ while ~(cvg || iter>maxit_)
|
||||||
else
|
else
|
||||||
if verbose
|
if verbose
|
||||||
if cutoff==0
|
if cutoff==0
|
||||||
fprintf('Error in simul: Convergence not achieved in block %d, after %d iterations.\n Increase "options_.simul.maxit".\n',Block_Num, iter);
|
fprintf('Convergence not achieved in block %d, after %d iterations.\n Increase "maxit".\n',Block_Num, iter);
|
||||||
else
|
else
|
||||||
fprintf('Error in simul: Convergence not achieved in block %d, after %d iterations.\n Increase "options_.simul.maxit" or set "cutoff=0" in model options.\n',Block_Num, iter);
|
fprintf('Convergence not achieved in block %d, after %d iterations.\n Increase "maxit" or set "cutoff=0" in model options.\n',Block_Num, iter);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
success = false;
|
success = false;
|
||||||
|
|
Loading…
Reference in New Issue