mttNotifyEquationSort.m 1.2 KB

123456789101112131415161718192021222324
  1. function is_complete = mttNotifyEquationSort(sort_iteration,...
  2. number_of_unsorted_equations,number_of_equations,...
  3. number_of_known_covariables,number_of_covariables,...
  4. number_of_known_interface_variables,number_of_interface_variables) ;
  5. % number_of_known_covariables = number_of_known_covariables - 1 ;
  6. number_of_known_interface_variables = number_of_known_interface_variables - 1 ;
  7. number_of_sorted_equations = number_of_equations - number_of_unsorted_equations ;
  8. sorted = floor(100*number_of_sorted_equations/number_of_equations) ;
  9. covar = floor(100*number_of_known_covariables/number_of_covariables) ;
  10. interface_var = floor(100*number_of_known_interface_variables/number_of_interface_variables) ;
  11. fprintf([' ...%i%% complete [%i/%i]\n'],...
  12. sorted,number_of_sorted_equations,number_of_equations) ;
  13. fprintf([' matching %i%% co_variables [%i/%i] and'],...
  14. covar,number_of_known_covariables,number_of_covariables) ;
  15. fprintf([' %i%% interface_variables [%i/%i]\n'],...
  16. interface_var,number_of_known_interface_variables,number_of_interface_variables) ;
  17. is_complete = (sorted==100) & (covar==100) & (interface_var==100) ;