Skip to content

Commit

Permalink
Re #1753 disable error for failing cpp_communicator in check_horace_m…
Browse files Browse the repository at this point in the history
…ex.m
  • Loading branch information
abuts committed Sep 30, 2024
1 parent 42164b4 commit d134296
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion horace_core/admin/check_horace_mex.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function [rez, n_errors, can_use_mex_4_combine] = check_horace_mex()
function [rez, n_errors, can_use_mex_4_combine,can_use_MPI] = check_horace_mex()
% function checks if horace mex files are compiled correctly and returns
% their version string.
%
Expand Down Expand Up @@ -54,6 +54,7 @@

n_errors=0;
can_use_mex_4_combine = true;
can_use_MPI = true;
for i=1:numel(functions_name_list)
try
rez{i}=[functions_name_list{i},functions_handle_list{i}()];
Expand All @@ -63,6 +64,8 @@
if contains(functions_name_list{i},'combine_sqw') % provide special treatment
% for combine_sqw function
can_use_mex_4_combine=false;
elseif contains(functions_name_list{i},'cpp_communicator')
can_use_MPI = false;
else
n_errors=n_errors+1;
end
Expand Down

0 comments on commit d134296

Please sign in to comment.