Skip to content

Commit 0b8428c

Browse files
committed
Now reading
1 parent 51a5f8e commit 0b8428c

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

Source/Driver/Nyx.H

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -996,6 +996,11 @@ protected:
996996
// Seed mass of SMBH
997997
//
998998
static amrex::Real mass_seed;
999+
1000+
static int min_halo_n_cells;
1001+
static bool halo_negate;
1002+
static amrex::Real halo_component_threshold;
1003+
9991004
#endif
10001005

10011006
// Previous maximum number of steps for sundials

Source/Driver/Nyx.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ Real Nyx::he_species = 0.24;
204204
#ifdef REEBER
205205
Real Nyx::mass_halo_min = 1.e10;
206206
Real Nyx::mass_seed = 1.e5;
207+
Real Nyx::halo_component_threshold = 81.66;
208+
int Nyx::min_halo_n_cells = 10;
209+
bool Nyx::halo_negate = true;
207210
#endif
208211

209212
#ifdef _OPENMP
@@ -445,6 +448,11 @@ Nyx::read_params ()
445448
#ifdef REEBER
446449
pp_nyx.query("mass_halo_min", mass_halo_min);
447450
pp_nyx.query("mass_seed", mass_seed);
451+
452+
ParmParse pp_reeber("reeber");
453+
pp_reeber.query("min_halo_n_cells", min_halo_n_cells);
454+
pp_reeber.query("halo_component_threshold", halo_component_threshold);
455+
pp_reeber.query("negate", halo_negate);
448456
#endif
449457
}
450458

Util/reeber/src/reeber.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -598,10 +598,7 @@ void Nyx::runReeberAnalysis(Vector<MultiFab*>& new_state,
598598

599599
diy::DiscreteBounds diy_domain(3);
600600

601-
// TODO: take rho, min_halo_n_cells as parameters
602-
Real min_halo_n_cells = 10;
603-
Real rho = 81.66;
604-
601+
Real rho = halo_component_threshold;
605602
Real absolute_rho = (Nyx::average_dm_density + Nyx::average_gas_density) * rho;
606603
bool negate = true; // sweep superlevel sets, highest density = root
607604
int finest_level = parent->finestLevel();

0 commit comments

Comments
 (0)