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

Always print the cooling and external potential information at start-up

parent 3380f87d
......@@ -605,12 +605,12 @@ int main(int argc, char *argv[]) {
struct external_potential potential;
if (with_external_gravity)
potential_init(params, &prog_const, &us, &s, &potential);
if (with_external_gravity && myrank == 0) potential_print(&potential);
if (myrank == 0) potential_print(&potential);
/* Initialise the cooling function properties */
struct cooling_function_data cooling_func;
if (with_cooling) cooling_init(params, &us, &prog_const, &cooling_func);
if (with_cooling && myrank == 0) cooling_print(&cooling_func);
if (myrank == 0) cooling_print(&cooling_func);
/* Initialise the chemistry */
struct chemistry_data chemistry;
......
......@@ -159,4 +159,4 @@ __attribute__((always_inline)) INLINE static void hydro_gradients_predict(
gizmo_check_physical_quantity("pressure", Wj[4]);
}
#endif /* SWIFT_HYDRO_GIZMO_GRADIENTS_H */
#endif /* SWIFT_HYDRO_GIZMO_GRADIENTS_H */
......@@ -91,4 +91,4 @@ __attribute__((always_inline)) INLINE static void hydro_slope_limit_cell(
#endif
#endif /* SWIFT_HYDRO_SLOPE_LIMITERS_H */
#endif /* SWIFT_HYDRO_SLOPE_LIMITERS_H */
......@@ -52,4 +52,4 @@
#endif // defined(GIZMO_UNPHYSICAL_ERROR) || defined(GIZMO_UNPHYSICAL_RESCUE)
#endif /* SWIFT_HYDRO_UNPHYSICAL_H */
#endif /* SWIFT_HYDRO_UNPHYSICAL_H */
......@@ -152,4 +152,4 @@ __attribute__((always_inline)) INLINE static void hydro_velocities_set(
}
}
#endif /* SWIFT_HYDRO_VELOCITIES_H */
#endif /* SWIFT_HYDRO_VELOCITIES_H */
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