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
af92d4c3
Commit
af92d4c3
authored
Nov 03, 2017
by
lhausamm
Browse files
Code works and seems to give good results
parent
650104aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cooling/grackle/grackle_wrapper.c
View file @
af92d4c3
...
...
@@ -134,6 +134,8 @@ int wrap_get_cooling_time(double rho, double u, double Z, double a_now,
int
wrap_do_cooling
(
double
rho
,
double
*
u
,
double
dt
,
double
Z
,
double
a_now
)
{
GRACKLE_ASSERT
(
FIELD_SIZE
==
1
);
gr_float
den_factor
=
1
.
0
;
gr_float
u_factor
=
1
.
0
;
...
...
@@ -149,8 +151,6 @@ int wrap_do_cooling(double rho, double *u, double dt, double Z, double a_now) {
int
grid_start
[
3
]
=
{
0
,
0
,
0
};
int
grid_end
[
3
]
=
{
0
,
0
,
0
};
GRACKLE_ASSERT
(
FIELD_SIZE
==
1
);
if
(
solve_chemistry_table
(
&
my_units
,
a_now
,
dt
,
grid_rank
,
grid_dimension
,
grid_start
,
grid_end
,
density
,
energy
,
x_velocity
,
y_velocity
,
z_velocity
,
metal_density
)
==
0
)
{
...
...
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