Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
be40366a
Commit
be40366a
authored
Jan 20, 2018
by
Matthieu Schaller
Browse files
Always print the cooling and external potential information at start-up
parent
3380f87d
Changes
5
Hide whitespace changes
Inline
Side-by-side
examples/main.c
View file @
be40366a
...
...
@@ -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
;
...
...
src/hydro/Gizmo/hydro_gradients.h
View file @
be40366a
...
...
@@ -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 */
src/hydro/Gizmo/hydro_slope_limiters.h
View file @
be40366a
...
...
@@ -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 */
src/hydro/Gizmo/hydro_unphysical.h
View file @
be40366a
...
...
@@ -52,4 +52,4 @@
#endif // defined(GIZMO_UNPHYSICAL_ERROR) || defined(GIZMO_UNPHYSICAL_RESCUE)
#endif
/* SWIFT_HYDRO_UNPHYSICAL_H */
#endif
/* SWIFT_HYDRO_UNPHYSICAL_H */
src/hydro/Gizmo/hydro_velocities.h
View file @
be40366a
...
...
@@ -152,4 +152,4 @@ __attribute__((always_inline)) INLINE static void hydro_velocities_set(
}
}
#endif
/* SWIFT_HYDRO_VELOCITIES_H */
#endif
/* SWIFT_HYDRO_VELOCITIES_H */
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment