Commit acffde16 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Flavor --> flavour and better naming convention for the functions writing...

Flavor --> flavour and better naming convention for the functions writing cooling and chemistry info to snapshots.
parent 92a00495
......@@ -60,7 +60,7 @@ int chemistry_write_particles(const struct part* parts, struct io_props* list) {
* @brief Writes the current model of SPH to the file
* @param h_grpsph The HDF5 group in which to write
*/
void writeChemistryFlavor(hid_t h_grpsph) {
void chemistry_write_flavour(hid_t h_grpsph) {
io_write_attribute_s(h_grpsph, "Chemistry Model", "GEAR");
}
......
......@@ -57,7 +57,7 @@ int chemistry_write_particles(const struct part* parts, struct io_props* list) {
* @brief Writes the current model of SPH to the file
* @param h_grpsph The HDF5 group in which to write
*/
void writeChemistryFlavor(hid_t h_grpsph) {
void chemistry_write_flavour(hid_t h_grpsph) {
io_write_attribute_s(h_grpsph, "Chemistry Model", "None");
}
......
......@@ -48,7 +48,7 @@
* @brief Writes the current model of SPH to the file
* @param h_grpsph The HDF5 group in which to write
*/
__attribute__((always_inline)) INLINE static void writeCoolingFlavor(
__attribute__((always_inline)) INLINE static void cooling_write_flavour(
hid_t h_grpsph) {
io_write_attribute_s(h_grpsph, "Cooling Model", "Constant du/dt");
......
......@@ -41,7 +41,7 @@
* @brief Writes the current model of SPH to the file
* @param h_grpsph The HDF5 group in which to write
*/
__attribute__((always_inline)) INLINE static void writeCoolingFlavor(
__attribute__((always_inline)) INLINE static void cooling_write_flavour(
hid_t h_grpsph) {
io_write_attribute_s(h_grpsph, "Cooling Model", "Constant Lambda");
......
......@@ -46,7 +46,7 @@
* @brief Writes the current model of SPH to the file
* @param h_grpsph The HDF5 group in which to write
*/
__attribute__((always_inline)) INLINE static void writeCoolingFlavor(
__attribute__((always_inline)) INLINE static void cooling_write_flavour(
hid_t h_grpsph) {
io_write_attribute_s(h_grpsph, "Cooling Model", "Grackle");
......
......@@ -41,7 +41,7 @@
* @brief Writes the current model of SPH to the file
* @param h_grpsph The HDF5 group in which to write
*/
__attribute__((always_inline)) INLINE static void writeCoolingFlavor(
__attribute__((always_inline)) INLINE static void cooling_write_flavour(
hid_t h_grpsph) {
io_write_attribute_s(h_grpsph, "Cooling Model", "None");
......
......@@ -102,7 +102,7 @@ void hydro_write_particles(struct part* parts, struct io_props* list,
* @brief Writes the current model of SPH to the file
* @param h_grpsph The HDF5 group in which to write
*/
void writeSPHflavour(hid_t h_grpsph) {
void hydro_write_flavour(hid_t h_grpsph) {
/* Viscosity and thermal conduction */
io_write_attribute_s(h_grpsph, "Thermal Conductivity Model",
......
......@@ -968,8 +968,8 @@ void write_output_parallel(struct engine* e, const char* baseName,
h_grp = H5Gcreate(h_file, "/SubgridScheme", H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT);
if (h_grp < 0) error("Error while creating subgrid group");
writeCoolingFlavor(h_grp);
writeChemistryFlavor(h_grp);
cooling_write_flavour(h_grp);
chemistry_write_flavour(h_grp);
H5Gclose(h_grp);
/* Print the gravity parameters */
......
......@@ -822,8 +822,8 @@ void write_output_serial(struct engine* e, const char* baseName,
h_grp = H5Gcreate(h_file, "/SubgridScheme", H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT);
if (h_grp < 0) error("Error while creating subgrid group");
writeCoolingFlavor(h_grp);
writeChemistryFlavor(h_grp);
cooling_write_flavour(h_grp);
chemistry_write_flavour(h_grp);
H5Gclose(h_grp);
/* Print the gravity parameters */
......
......@@ -672,8 +672,8 @@ void write_output_single(struct engine* e, const char* baseName,
h_grp = H5Gcreate(h_file, "/SubgridScheme", H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT);
if (h_grp < 0) error("Error while creating subgrid group");
writeCoolingFlavor(h_grp);
writeChemistryFlavor(h_grp);
cooling_write_flavour(h_grp);
chemistry_write_flavour(h_grp);
H5Gclose(h_grp);
/* Print the gravity parameters */
......
Supports Markdown
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