Skip to content
Snippets Groups Projects
Commit f4569913 authored by Mladen Ivkovic's avatar Mladen Ivkovic Committed by Matthieu Schaller
Browse files

RT Sub-cycling

parent 3afe16ec
No related branches found
No related tags found
8 merge requests!1715Update planetary strength after planetary plus's master rebase,!1693More threapool plotting tweaks,!1668before Mag.Egy in all the flavors,!1663Initial sync to work again,!1662Initial sync from previous months,!1642When searching for more particles in a ghost task we walk up the cell tree,...,!1633When searching for more particles in a ghost task we walk up the cell tree,...,!1574RT Sub-cycling
Showing
with 518 additions and 254 deletions
......@@ -95,8 +95,11 @@ INLINE static int rt_write_particles(const struct part* parts,
"RTDebugRadAbsorbedTot", ULONGLONG, 1, UNIT_CONV_NO_UNITS, 0, parts,
rt_data.debug_radiation_absorbed_tot,
"Radiation absorbed by this part during its lifetime");
list[7] = io_make_output_field("RTDebugSubcycles", INT, 1, UNIT_CONV_NO_UNITS,
0, parts, rt_data.debug_nsubcycles,
"How many times this part was subcycled");
return 7;
return 8;
}
/**
......
......@@ -47,6 +47,9 @@ struct rt_props {
/* total radiation absorbed by gas. This is not really a property,
* but a placeholder to sum up a global variable */
unsigned long long debug_radiation_absorbed_tot;
/* Max number of subcycles per hydro step */
int debug_max_nr_subcycles;
};
/**
......@@ -83,13 +86,10 @@ __attribute__((always_inline)) INLINE static void rt_props_init(
rtp->debug_radiation_absorbed_tot = 0ULL;
rtp->debug_radiation_absorbed_this_step = 0ULL;
/* After initialisation, print params to screen */
rt_props_print(rtp);
/* Print a final message. */
if (engine_rank == 0) {
message("Radiative transfer initialized");
}
/* Don't make it an optional parameter here so we crash
* if I forgot to provide it */
rtp->debug_max_nr_subcycles =
parser_get_param_int(params, "TimeIntegration:max_nr_rt_subcycles");
}
/**
......
This diff is collapsed.
This diff is collapsed.
......@@ -57,11 +57,7 @@ __attribute__((always_inline)) INLINE static void rt_props_print(
__attribute__((always_inline)) INLINE static void rt_props_init(
struct rt_props* rtp, const struct phys_const* phys_const,
const struct unit_system* us, struct swift_params* params,
struct cosmology* cosmo) {
/* After initialisation, print params to screen */
rt_props_print(rtp);
}
struct cosmology* cosmo) {}
/**
* @brief Write an RT properties struct to the given FILE as a
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment