diff --git a/doc/Doxyfile.in b/doc/Doxyfile.in index 1eea1c58527e9bc91daa067702472f43f85939f6..fe48398e4b0dd4bfdede6781e708bd222b6eedae 100644 --- a/doc/Doxyfile.in +++ b/doc/Doxyfile.in @@ -773,7 +773,7 @@ INPUT += @top_srcdir@/src/cooling/Compton INPUT += @top_srcdir@/src/cooling/EAGLE INPUT += @top_srcdir@/src/chemistry/EAGLE INPUT += @top_srcdir@/src/entropy_floor/EAGLE -INPUT += @top_srcdir@/src/starformation/schaye08 +INPUT += @top_srcdir@/src/star_formation/EAGLE INPUT += @top_srcdir@/src/tracers/EAGLE # This tag can be used to specify the character encoding of the source files diff --git a/src/parallel_io.c b/src/parallel_io.c index d14aae54a865d625d95355b0569bfe76872ccda6..4c08712cf3d54dae3aef37dd46ab7b999b602fbe 100644 --- a/src/parallel_io.c +++ b/src/parallel_io.c @@ -1156,7 +1156,7 @@ void prepare_file(struct engine* e, const char* baseName, long long N_total[6], num_fields += tracers_write_particles(parts, xparts, list + num_fields, with_cosmology); num_fields += star_formation_write_particles( - parts, xparts, list + num_fields, with_cosmology); + parts, xparts, list + num_fields); if (with_stf) { num_fields += velociraptor_write_parts(parts, xparts, list + num_fields); @@ -1479,7 +1479,7 @@ void write_output_parallel(struct engine* e, const char* baseName, num_fields += tracers_write_particles( parts, xparts, list + num_fields, with_cosmology); num_fields += star_formation_write_particles( - parts, xparts, list + num_fields, with_cosmology); + parts, xparts, list + num_fields); } else { @@ -1515,7 +1515,7 @@ void write_output_parallel(struct engine* e, const char* baseName, num_fields += tracers_write_particles( parts_written, xparts_written, list + num_fields, with_cosmology); num_fields += star_formation_write_particles( - parts_written, xparts_written, list + num_fields, with_cosmology); + parts_written, xparts_written, list + num_fields); } } break; diff --git a/src/serial_io.c b/src/serial_io.c index f3abc0e48c912171722cb93aac3c5af21eb97fdb..157fcf12a3a44c8faac93b67ed360e162a8b5407 100644 --- a/src/serial_io.c +++ b/src/serial_io.c @@ -1124,7 +1124,7 @@ void write_output_serial(struct engine* e, const char* baseName, num_fields += tracers_write_particles( parts, xparts, list + num_fields, with_cosmology); num_fields += star_formation_write_particles( - parts, xparts, list + num_fields, with_cosmology); + parts, xparts, list + num_fields); } else { @@ -1161,8 +1161,8 @@ void write_output_serial(struct engine* e, const char* baseName, tracers_write_particles(parts_written, xparts_written, list + num_fields, with_cosmology); num_fields += star_formation_write_particles( - parts_written, xparts_written, list + num_fields, - with_cosmology); + parts_written, xparts_written, list + num_fields); + } } break; diff --git a/src/single_io.c b/src/single_io.c index 86e8597f08f619abefaacc83b19130b6265d1b43..c2da068b793c0df40797f973d22e64fc0527ca8e 100644 --- a/src/single_io.c +++ b/src/single_io.c @@ -927,7 +927,8 @@ void write_output_single(struct engine* e, const char* baseName, num_fields += tracers_write_particles( parts, xparts, list + num_fields, with_cosmology); num_fields += star_formation_write_particles( - parts, xparts, list + num_fields, with_cosmology); + parts, xparts, list + num_fields); + } else { @@ -963,7 +964,7 @@ void write_output_single(struct engine* e, const char* baseName, num_fields += tracers_write_particles( parts_written, xparts_written, list + num_fields, with_cosmology); num_fields += star_formation_write_particles( - parts_written, xparts_written, list + num_fields, with_cosmology); + parts_written, xparts_written, list + num_fields); } } break; diff --git a/src/star_formation.h b/src/star_formation.h index 040233c87dfade411e215f9b0b1a4ef94018efbe..78b9e018bf5f6cabc8a2b34dc5c4915f12806f68 100644 --- a/src/star_formation.h +++ b/src/star_formation.h @@ -16,11 +16,11 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. * ******************************************************************************/ -#ifndef SWIFT_STARFORMATION_H -#define SWIFT_STARFORMATION_H +#ifndef SWIFT_STAR_FORMATION_H +#define SWIFT_STAR_FORMATION_H /** - * @file src/starformation.h + * @file src/star_formation.h * @brief Branches between the different star formation recipies. */ @@ -52,4 +52,4 @@ void starformation_struct_dump(const struct star_formation* starform, void starformation_struct_restore(const struct star_formation* starform, FILE* stream); -#endif /* SWIFT_STARFORMATION_H */ +#endif /* SWIFT_STAR_FORMATION_H */ diff --git a/src/star_formation/EAGLE/star_formation.h b/src/star_formation/EAGLE/star_formation.h index 72d7832cb186dc31f0f6478f7da834e20e83fbf8..056b6051ca6ca12ddeef780d5e493043a288b870 100644 --- a/src/star_formation/EAGLE/star_formation.h +++ b/src/star_formation/EAGLE/star_formation.h @@ -19,9 +19,6 @@ #ifndef SWIFT_EAGLE_STAR_FORMATION_H #define SWIFT_EAGLE_STAR_FORMATION_H -/* Some standard headers */ -#include <stdlib.h> - /* Local includes */ #include "adiabatic_index.h" #include "cooling.h" @@ -36,8 +33,8 @@ #include "units.h" /** - * @file src/starformation/schaye08/starformation.h - * @brief Entropy floor used in the EAGLE model + * @file src/star_formation/EAGLE/star_formation.h + * @brief Star formation model used in the EAGLE model */ /** diff --git a/src/star_formation/EAGLE/star_formation_io.h b/src/star_formation/EAGLE/star_formation_io.h index 521584d038c32f23f6d8fd4f29f85acc8ebf5772..10f32296a2e0728f48b9adf7be3553e4a8fa1c7e 100644 --- a/src/star_formation/EAGLE/star_formation_io.h +++ b/src/star_formation/EAGLE/star_formation_io.h @@ -35,8 +35,7 @@ * @return Returns the number of fields to write. */ __attribute__((always_inline)) INLINE static int star_formation_write_particles( - const struct part* parts, const struct xpart* xparts, struct io_props* list, - const int with_cosmology) { + const struct part* parts, const struct xpart* xparts, struct io_props* list) { list[0] = io_make_output_field("SFR", FLOAT, 1, UNIT_CONV_SFR, xparts, sf_data.SFR); diff --git a/src/star_formation/EAGLE/star_formation_struct.h b/src/star_formation/EAGLE/star_formation_struct.h index ed56f34e02859fb0f31c185be36131c8bac71983..c48fee12883a853db053f34246214f129780979c 100644 --- a/src/star_formation/EAGLE/star_formation_struct.h +++ b/src/star_formation/EAGLE/star_formation_struct.h @@ -20,7 +20,8 @@ #define SWIFT_EAGLE_STAR_FORMATION_STRUCT_H /** - * @brief Properties of the tracers stored in the extended particle data. + * @brief Star-formation-related properties stored in the extended particle + * data. */ struct star_formation_xpart_data { diff --git a/src/star_formation/none/star_formation_io.h b/src/star_formation/none/star_formation_io.h index 81449c39fc3c4d2977a479fe8ea5430c24a70ef2..b808ffa342a541e4d1bc199a3a4635be291d7aa5 100644 --- a/src/star_formation/none/star_formation_io.h +++ b/src/star_formation/none/star_formation_io.h @@ -35,8 +35,7 @@ * @return Returns the number of fields to write. */ __attribute__((always_inline)) INLINE static int star_formation_write_particles( - const struct part* parts, const struct xpart* xparts, struct io_props* list, - const int with_cosmology) { + const struct part* parts, const struct xpart* xparts, struct io_props* list) { return 0; } diff --git a/src/star_formation_io.h b/src/star_formation_io.h index 5fb86398ed2e418d7361a4d4ef634d483683066f..248866c513e405b80f974d4932f02d3c707785ee 100644 --- a/src/star_formation_io.h +++ b/src/star_formation_io.h @@ -20,8 +20,8 @@ #define SWIFT_STAR_FORMATION_IO_H /** - * @file src/sftracers_io.h - * @brief Branches between the different particle data star formation tracers + * @file src/star_formation_io.h + * @brief Branches between the i/o routines for the SF code. */ /* Config parameters. */ diff --git a/src/star_formation_struct.h b/src/star_formation_struct.h index cb4bd1bd159508480cb1b1a70a7a54804f278ff9..3e9859cfb650ddd370c6acce282084b7eba6bf82 100644 --- a/src/star_formation_struct.h +++ b/src/star_formation_struct.h @@ -20,8 +20,8 @@ #define SWIFT_STAR_FORMATION_STRUCT_H /** - * @file src/tracers_struct.h - * @brief Branches between the different particle data tracers + * @file src/star_formation_struct.h + * @brief Branches between the different particle data SF tracers */ /* Config parameters. */