Skip to content

Commit

Permalink
Avoid compiler bug on RHEL6
Browse files Browse the repository at this point in the history
  • Loading branch information
tschoonj committed Apr 10, 2017
1 parent 67330b7 commit d8641ee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/xmimsim-conv.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,9 @@ XMI_MAIN

double **channels_conv = g_malloc(sizeof(double *)*(xmso_in->input->general->n_interactions_trajectory+1));

if (options.custom_detector_response == NULL)
if (options.custom_detector_response == NULL) {
xmi_detector_convolute_all(inputFPtr, xmso_in->channels_unconv, channels_conv, NULL, NULL, options, escape_ratios_def, xmso_in->input->general->n_interactions_trajectory, xmso_in->use_zero_interactions);
}
else {
XmiDetectorConvoluteAll xmi_detector_convolute_all_custom;
GModule *module = NULL;
Expand Down
3 changes: 2 additions & 1 deletion bin/xmimsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,9 @@ XMI_MAIN
channels_def_ptrs[i] = channelsdef+i*input->detector->nchannels;


if (options.custom_detector_response == NULL)
if (options.custom_detector_response == NULL) {
xmi_detector_convolute_all(inputFPtr, channels_def_ptrs, channels_conv, brute_historydef, options.use_variance_reduction == 1 ? var_red_historydef : NULL, options, escape_ratios_def, input->general->n_interactions_trajectory, zero_sum > 0.0 ? 1 : 0);
}
else {
XmiDetectorConvoluteAll xmi_detector_convolute_all_custom;
GModule *module = NULL;
Expand Down
1 change: 1 addition & 0 deletions src/xmi_aux_f.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2088,6 +2088,7 @@ FUNCTION xmi_get_default_main_options() &

!set the number of threads right
rv%omp_num_threads = xmi_omp_get_max_threads()
rv%custom_detector_response = C_NULL_PTR

RETURN
ENDFUNCTION xmi_get_default_main_options
Expand Down

0 comments on commit d8641ee

Please sign in to comment.