Commit b22d8248 authored by Josh Borrow's avatar Josh Borrow
Browse files

Changed "Default" for an equivalent #define in output_options

parent 0742f069
......@@ -358,7 +358,8 @@ void write_output_distributed(struct engine* e,
/* Determine if we are writing a reduced snapshot, and if so which
* output selection type to use */
char current_selection_name[FIELD_BUFFER_SIZE] = "Default";
char current_selection_name[FIELD_BUFFER_SIZE] =
select_output_header_default_name;
if (output_list) {
/* Users could have specified a different Select Output scheme for each
* snapshot. */
......
......@@ -111,7 +111,8 @@ void output_list_read_file(struct output_list *output_list,
size_t ind = 0;
int read_successfully = 0;
int found_select_output = 0;
char select_output_buffer[FIELD_BUFFER_SIZE] = "Default";
char select_output_buffer[FIELD_BUFFER_SIZE] =
select_output_header_default_name;
while (getline(&line, &len, file) != -1) {
double *time = &output_list->times[ind];
/* Write data to output_list */
......
......@@ -36,6 +36,9 @@ enum compression_levels {
/* Default value for SelectOutput */
#define compression_level_default compression_write_lossless
/* Default name for the SelectOutput header */
#define select_output_header_default_name "Default"
/**
* @brief Names of the compression levels, used in the select_output.yml
* parameter file.
......
......@@ -1105,7 +1105,8 @@ void prepare_file(struct engine* e, const char* fileName,
/* Determine if we are writing a reduced snapshot, and if so which
* output selection type to use */
char current_selection_name[FIELD_BUFFER_SIZE] = "Default";
char current_selection_name[FIELD_BUFFER_SIZE] =
select_output_header_default_name;
if (output_list) {
/* Users could have specified a different Select Output scheme for each
* snapshot. */
......@@ -1781,7 +1782,8 @@ void write_output_parallel(struct engine* e,
}
/* Write everything that is not cancelled */
char current_selection_name[FIELD_BUFFER_SIZE] = "Default";
char current_selection_name[FIELD_BUFFER_SIZE] =
select_output_header_default_name;
if (output_list) {
/* Users could have specified a different Select Output scheme for each
* snapshot. */
......
......@@ -925,7 +925,8 @@ void write_output_serial(struct engine* e,
/* Determine if we are writing a reduced snapshot, and if so which
* output selection type to use. Can just create a copy of this on
* each rank. */
char current_selection_name[FIELD_BUFFER_SIZE] = "Default";
char current_selection_name[FIELD_BUFFER_SIZE] =
select_output_header_default_name;
if (output_list) {
/* Users could have specified a different Select Output scheme for each
* snapshot. */
......
......@@ -817,7 +817,8 @@ void write_output_single(struct engine* e,
/* Determine if we are writing a reduced snapshot, and if so which
* output selection type to use */
char current_selection_name[FIELD_BUFFER_SIZE] = "Default";
char current_selection_name[FIELD_BUFFER_SIZE] =
select_output_header_default_name;
if (output_list) {
/* Users could have specified a different Select Output scheme for each
* snapshot. */
......
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