Skip to content
Snippets Groups Projects
Commit af92d4c3 authored by lhausamm's avatar lhausamm
Browse files

Code works and seems to give good results

parent 650104aa
No related branches found
No related tags found
1 merge request!469Update cooling grackle
...@@ -134,6 +134,8 @@ int wrap_get_cooling_time(double rho, double u, double Z, double a_now, ...@@ -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) { 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 den_factor = 1.0;
gr_float u_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) { ...@@ -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_start[3] = {0, 0, 0};
int grid_end[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, if (solve_chemistry_table(&my_units, a_now, dt, grid_rank, grid_dimension,
grid_start, grid_end, density, energy, x_velocity, grid_start, grid_end, density, energy, x_velocity,
y_velocity, z_velocity, metal_density) == 0) { y_velocity, z_velocity, metal_density) == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment