Commit 5122feb5 authored by Matthieu Schaller's avatar Matthieu Schaller

Rename the function io_check_output_fields() to io_prepare_output_fields() to...

Rename the function io_check_output_fields() to io_prepare_output_fields() to better represent what it does.
parent 51a33aba
......@@ -840,9 +840,9 @@ int main(int argc, char *argv[]) {
} else {
/* Verify that the fields to dump actually exist */
io_check_output_fields(output_options, with_cosmology, with_fof,
with_structure_finding);
/* Prepare and verify the selection of outputs */
io_prepare_output_fields(output_options, with_cosmology, with_fof,
with_structure_finding);
/* Not restarting so look for the ICs. */
/* Initialize unit system and constants */
......
......@@ -2274,15 +2274,17 @@ void io_collect_gparts_background_to_write(
}
/**
* @brief Verify that the output selection file is valid.
* @brief Prepare the output option fields according to the user's choices and
* verify that they are valid.
*
* @param params The #swift_params instance corresponding to the select_output
* file.
* @param output_options The #output_options for this run
* @param with_cosmolgy Ran with cosmology?
* @param with_fof Are we running with on-the-fly Fof?
* @param with_stf Are we running with on-the-fly structure finder?
*/
void io_check_output_fields(struct output_options* output_options,
const int with_cosmology, const int with_fof,
const int with_stf) {
void io_prepare_output_fields(struct output_options* output_options,
const int with_cosmology, const int with_fof,
const int with_stf) {
const int MAX_NUM_PTYPE_FIELDS = 100;
......
......@@ -172,9 +172,9 @@ void io_duplicate_black_holes_gparts(struct threadpool* tp,
struct gpart* const gparts, size_t Nstars,
size_t Ndm);
void io_check_output_fields(struct output_options* output_options,
const int with_cosmology, const int with_fof,
const int with_stf);
void io_prepare_output_fields(struct output_options* output_options,
const int with_cosmology, const int with_fof,
const int with_stf);
void io_write_output_field_parameter(const char* filename, int with_cosmology);
......
......@@ -159,8 +159,8 @@ int main(int argc, char *argv[]) {
/* check output selection */
message("Checking output parameters.");
io_check_output_fields(&output_options, /*with_cosmology=*/0, /*with_fof=*/0,
/*with_structure_finding=*/0);
io_prepare_output_fields(&output_options, /*with_cosmology=*/0, /*with_fof=*/0,
/*with_structure_finding=*/0);
/* write output file */
message("Writing output.");
......
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