Skip to content
Snippets Groups Projects
Commit e14150b5 authored by Puchtler, Steffen's avatar Puchtler, Steffen
Browse files

Merge branch '59-help-user-in-warnings-by-giving-more-info-and-suggestions' into 'master'

Resolve "Help user in warnings by giving more info and suggestions"

Closes #59

See merge request pmd_smartbearings/bearimp!20
parents a2b2d6b8 13c98479
No related branches found
No related tags found
No related merge requests found
......@@ -143,11 +143,15 @@ switch method
end
if max(rangeLoadParM) < max(M,[],'all') || min(rangeLoadParM) > min(M,[],'all')
warning('The force for the lubricant film thickness calculation is outside the permissible range, which means that the calculated lubricant film is no longer meaningful!')
warning(['The force for the lubricant film thickness calculation (%f to %f) is outside the permissible range (%f to %f), ' ...
'which means that the calculated lubricant film is no longer meaningful!'], ...
min(M,[],'all'), max(M,[],'all'), min(rangeLoadParM), max(rangeLoadParM))
end
if max(rangeViscParL) < max(H.L,[],'all') || min(rangeViscParL) > min(H.L,[],'all')
warning('The viscosity parameter for the lubricant film thickness calculation is outside the permissible range, which means that the calculated lubricant film is no longer meaningful!')
warning(['The viscosity parameter for the lubricant film thickness calculation (%f to %f) is outside the permissible range (%f to %f), ' ...
'which means that the calculated lubricant film is no longer meaningful!'], ...
min(H.L,[],'all'), max(H.L,[],'all'), min(rangeViscParL), max(rangeViscParL))
end
end
%% Attribute ändern
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment