Commit 3018c498 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Intel compiler int->enum fixes

parent 25ad7e33
......@@ -723,7 +723,8 @@ void write_output_distributed(struct engine* e,
/* Did the user cancel this field? */
const int should_write = output_options_should_write_field(
output_options, current_selection_name, list[i].name, ptype);
output_options, current_selection_name, list[i].name,
(enum part_type)ptype);
if (should_write)
write_distributed_array(e, h_grp, fileName, partTypeGroupName, list[i],
......
......@@ -1276,7 +1276,8 @@ void prepare_file(struct engine* e, const char* fileName,
/* Did the user cancel this field? */
const int should_write = output_options_should_write_field(
output_options, current_selection_name, list[i].name, ptype);
output_options, current_selection_name, list[i].name,
(enum part_type)ptype);
if (should_write)
prepare_array_parallel(e, h_grp, fileName, xmfFile, partTypeGroupName,
......@@ -1793,7 +1794,8 @@ void write_output_parallel(struct engine* e,
/* Did the user cancel this field? */
const int should_write = output_options_should_write_field(
output_options, current_selection_name, list[i].name, ptype);
output_options, current_selection_name, list[i].name,
(enum part_type)ptype);
if (should_write)
write_array_parallel(e, h_grp, fileName, partTypeGroupName, list[i],
......
......@@ -1406,7 +1406,8 @@ void write_output_serial(struct engine* e,
/* Did the user cancel this field? */
const int should_write = output_options_should_write_field(
output_options, current_selection_name, list[i].name, ptype);
output_options, current_selection_name, list[i].name,
(enum part_type)ptype);
if (should_write)
write_array_serial(e, h_grp, fileName, xmfFile, partTypeGroupName,
......
......@@ -1188,7 +1188,8 @@ void write_output_single(struct engine* e,
/* Did the user cancel this field? */
const int should_write = output_options_should_write_field(
output_options, current_selection_name, list[i].name, ptype);
output_options, current_selection_name, list[i].name,
(enum part_type)ptype);
if (should_write) {
write_array_single(e, h_grp, fileName, xmfFile, partTypeGroupName,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment