MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
Go to the source code of this file.
Classes | |
struct | OutputFD |
Functions | |
void | set_stats_params (ParameterSet *ps) |
void | open_outputfiles (int RestartSnapNum, struct OutputFD *fds, const char *OutputDir, int BlackHoleOn, int StarformationOn) |
void | close_outputfiles (struct OutputFD *fds) |
void | write_cpu_log (int NumCurrentTiStep, const double atime, FILE *FdCPU, double ElapsedTime) |
void | energy_statistics (FILE *FdEnergy, const double Time, struct part_manager_type *PartManager) |
void close_outputfiles | ( | struct OutputFD * | fds | ) |
This function closes the global log-files.
Definition at line 150 of file stats.c.
References OutputFD::FdBlackholeDetails, OutputFD::FdBlackHoles, OutputFD::FdCPU, OutputFD::FdEnergy, and OutputFD::FdSfr.
Referenced by run().
void energy_statistics | ( | FILE * | FdEnergy, |
const double | Time, | ||
struct part_manager_type * | PartManager | ||
) |
This routine first calls a computation of various global quantities of the particle distribution, and then writes some statistics about the energies in the various particle components to the file FdEnergy.
Definition at line 334 of file stats.c.
References compute_global_quantities_of_system(), state_of_system::EnergyInt, state_of_system::EnergyIntComp, state_of_system::EnergyKin, state_of_system::EnergyKinComp, state_of_system::EnergyPot, state_of_system::EnergyPotComp, state_of_system::MassComp, message(), PartManager, and state_of_system::TemperatureComp.
Referenced by run().
void open_outputfiles | ( | int | RestartSnapNum, |
struct OutputFD * | fds, | ||
const char * | OutputDir, | ||
int | BlackHoleOn, | ||
int | StarformationOn | ||
) |
This function opens various log-files that report on the status and performance of the simulstion. On restart from restart-files (start-option 1), the code will append to these files.
Definition at line 73 of file stats.c.
References stats_params::CpuFile, endrun(), stats_params::EnergyFile, fastpm_path_ensure_dirname(), fastpm_strdup_printf(), OutputFD::FdBlackholeDetails, OutputFD::FdBlackHoles, OutputFD::FdCPU, OutputFD::FdEnergy, OutputFD::FdHelium, OutputFD::FdSfr, myfree, stats_params::OutputEnergyDebug, qso_lightup_on(), StatsParams, ThisTask, and stats_params::WriteBlackHoleDetails.
Referenced by run().
void set_stats_params | ( | ParameterSet * | ps | ) |
Definition at line 55 of file stats.c.
References stats_params::CpuFile, stats_params::EnergyFile, stats_params::OutputEnergyDebug, param_get_int(), param_get_string2(), StatsParams, ThisTask, and stats_params::WriteBlackHoleDetails.
Referenced by read_parameter_file().
void write_cpu_log | ( | int | NumCurrentTiStep, |
const double | atime, | ||
FILE * | FdCPU, | ||
double | ElapsedTime | ||
) |