Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
helenarichie committed Jan 6, 2024
1 parent e12b846 commit 3fec978
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 1 addition & 3 deletions builds/make.type.dust
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ DFLAGS += -DHLLC

DFLAGS += -DDE
DFLAGS += -DAVERAGE_SLOW_CELLS
# DFLAGS += -DTEMPERATURE_FLOOR
DFLAGS += -DTEMPERATURE_FLOOR
DFLAGS += -DSCALAR_FLOOR

DFLAGS += -DVL
Expand All @@ -25,8 +25,6 @@ DFLAGS += -DSCALAR
# Define dust macro
DFLAGS += -DDUST

DFLAGS += -DSCALAR_FLOOR

# Apply the cooling in the GPU from precomputed tables
DFLAGS += -DCOOLING_GPU
DFLAGS += -DCLOUDY_COOLING
Expand Down
2 changes: 1 addition & 1 deletion src/global/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ typedef double Real;
#define LOG_FILE_NAME "run_output.log"

// Conserved Floor Values
#define TEMP_FLOOR 10
#define TEMP_FLOOR 100
#define DENS_FLOOR 1e-5 // in code units

// Parameters for Enzo dual Energy Condition
Expand Down
2 changes: 1 addition & 1 deletion src/grid/grid3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ void Grid3D::Initialize(struct Parameters *P)
C_cfl = 0.3;

#ifdef AVERAGE_SLOW_CELLS
H.min_dt_slow = 1e-5; // Initialize the minumum dt to a tiny number
H.min_dt_slow = 0.024; // Initialize the minumum dt to a tiny number
#endif // AVERAGE_SLOW_CELLS

#ifndef MPI_CHOLLA
Expand Down
3 changes: 2 additions & 1 deletion src/hydro/hydro_cuda.cu
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ __global__ void Update_Conserved_Variables_3D(Real *dev_conserved, Real *Q_Lx, R

#endif // GRAVITY

#if !(defined(DENSITY_FLOOR) && defined(TEMPERATURE_FLOOR))
// #if !(defined(DENSITY_FLOOR) && defined(TEMPERATURE_FLOOR))
#if !(defined(DENSITY_FLOOR))
if (dev_conserved[id] < 0.0 || dev_conserved[id] != dev_conserved[id] || dev_conserved[4 * n_cells + id] < 0.0 ||
dev_conserved[4 * n_cells + id] != dev_conserved[4 * n_cells + id]) {
printf("%3d %3d %3d Thread crashed in final update. %e %e %e %e %e\n", xid + x_off, yid + y_off, zid + z_off,
Expand Down

0 comments on commit 3fec978

Please sign in to comment.