Skip to content
Snippets Groups Projects
Commit 92a00495 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Corrected mistake in serial i/o and added missing headed inclusion.

parent 8d9c9727
No related branches found
No related tags found
1 merge request!486Add chemistry in part
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#ifndef SWIFT_DEFAULT_HYDRO_PART_H #ifndef SWIFT_DEFAULT_HYDRO_PART_H
#define SWIFT_DEFAULT_HYDRO_PART_H #define SWIFT_DEFAULT_HYDRO_PART_H
#include "chemistry_struct.h"
#include "cooling_struct.h" #include "cooling_struct.h"
/* Extra particle data not needed during the SPH loops over neighbours. */ /* Extra particle data not needed during the SPH loops over neighbours. */
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#define SWIFT_GADGET2_HYDRO_IO_H #define SWIFT_GADGET2_HYDRO_IO_H
#include "adiabatic_index.h" #include "adiabatic_index.h"
#include "chemistry_io.h"
#include "cooling.h"
#include "hydro.h" #include "hydro.h"
#include "io_properties.h" #include "io_properties.h"
#include "kernel_hydro.h" #include "kernel_hydro.h"
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#ifndef SWIFT_GIZMO_HYDRO_PART_H #ifndef SWIFT_GIZMO_HYDRO_PART_H
#define SWIFT_GIZMO_HYDRO_PART_H #define SWIFT_GIZMO_HYDRO_PART_H
#include "chemistry_struct.h"
#include "cooling_struct.h" #include "cooling_struct.h"
/* Extra particle data not needed during the computation. */ /* Extra particle data not needed during the computation. */
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
* Physics, 2012, Volume 231, Issue 3, pp. 759-794. * Physics, 2012, Volume 231, Issue 3, pp. 759-794.
*/ */
#include "chemistry_struct.h"
#include "cooling_struct.h" #include "cooling_struct.h"
/** /**
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
* Volume 428, Issue 4, pp. 2840-2856 with a simple Balsara viscosity term. * Volume 428, Issue 4, pp. 2840-2856 with a simple Balsara viscosity term.
*/ */
#include "chemistry_struct.h"
#include "cooling_struct.h" #include "cooling_struct.h"
/* Extra particle data not needed during the SPH loops over neighbours. */ /* Extra particle data not needed during the SPH loops over neighbours. */
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
* *
******************************************************************************/ ******************************************************************************/
#include "chemistry_struct.h"
#include "cooling_struct.h" #include "cooling_struct.h"
#include "voronoi_cell.h" #include "voronoi_cell.h"
......
...@@ -36,7 +36,9 @@ ...@@ -36,7 +36,9 @@
#include "parallel_io.h" #include "parallel_io.h"
/* Local includes. */ /* Local includes. */
#include "chemistry_io.h"
#include "common_io.h" #include "common_io.h"
#include "cooling.h"
#include "dimension.h" #include "dimension.h"
#include "engine.h" #include "engine.h"
#include "error.h" #include "error.h"
......
...@@ -36,7 +36,9 @@ ...@@ -36,7 +36,9 @@
#include "serial_io.h" #include "serial_io.h"
/* Local includes. */ /* Local includes. */
#include "chemistry_io.h"
#include "common_io.h" #include "common_io.h"
#include "cooling.h"
#include "dimension.h" #include "dimension.h"
#include "engine.h" #include "engine.h"
#include "error.h" #include "error.h"
...@@ -812,7 +814,7 @@ void write_output_serial(struct engine* e, const char* baseName, ...@@ -812,7 +814,7 @@ void write_output_serial(struct engine* e, const char* baseName,
H5P_DEFAULT); H5P_DEFAULT);
if (h_grp < 0) error("Error while creating SPH group"); if (h_grp < 0) error("Error while creating SPH group");
hydro_props_print_snapshot(h_grp, e->hydro_properties); hydro_props_print_snapshot(h_grp, e->hydro_properties);
writeChemistryFlavor(h_grp); writeSPHflavour(h_grp);
H5Gclose(h_grp); H5Gclose(h_grp);
} }
......
...@@ -35,7 +35,9 @@ ...@@ -35,7 +35,9 @@
#include "single_io.h" #include "single_io.h"
/* Local includes. */ /* Local includes. */
#include "chemistry_io.h"
#include "common_io.h" #include "common_io.h"
#include "cooling.h"
#include "dimension.h" #include "dimension.h"
#include "engine.h" #include "engine.h"
#include "error.h" #include "error.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment