GADGET-4
|
#include <allvars.h>
Inherits parameters.
Public Member Functions | |
double | get_absolutetime_from_integertime (integertime ti) |
void | set_cosmo_factors_for_current_time (void) |
void | register_parameters (void) |
void | read_outputlist (char *fname) |
This function reads a table with a list of desired output times. More... | |
void | some_parameter_checks (void) |
char * | get_data_ptr (void) |
size_t | get_data_size (void) |
Public Member Functions inherited from parameters | |
parameters () | |
parameters (MPI_Comm comm) | |
int | read_parameter_file (const char *fname) |
This function parses the parameter file. More... | |
void | add_param (const char *name, void *buf, int type, int flag) |
void | write_used_parameters (const char *dirname, const char *fname) |
Public Member Functions inherited from setcomm | |
setcomm (MPI_Comm Comm) | |
setcomm (const char *str) | |
void | initcomm (MPI_Comm Comm) |
void | mpi_printf (const char *fmt,...) |
void | determine_compute_nodes (void) |
Data which is the SAME for all tasks (mostly code parameters read from the parameter file). Holding this data in a structure is convenient for writing/reading the restart file, and it allows the introduction of new global variables in a simple way. The only thing to do is to introduce them into this structure.
|
inline |
void read_outputlist | ( | char * | fname | ) |
This function reads a table with a list of desired output times.
The table does not have to be ordered in any way, but may not contain more than MAXLEN_OUTPUTLIST entries.
fname | The file name of the outputlist |
Definition at line 211 of file allvars.cc.
void register_parameters | ( | void | ) |
Definition at line 55 of file allvars.cc.
void set_cosmo_factors_for_current_time | ( | void | ) |
Definition at line 20 of file allvars.cc.
void some_parameter_checks | ( | void | ) |
Definition at line 255 of file allvars.cc.
double ArtBulkViscConst |
double BoxSize |
int ComovingIntegrationOn |
double CPU_TimeBinMeasurements[TIMEBINS][NUMBER_OF_MEASUREMENTS_TO_RECORD] |
double CpuTimeBetRestartFile |
double ErrTolForceAcc |
double ErrTolIntAccuracy |
double ErrTolThetaMax |
double ForceSoftening[NSOFTCLASSES+NSOFTCLASSES_HYDRO+ 2] |
double GravityConstantInternal |
double HubbleParam |
char InitCondFile[MAXLEN_PATH] |
double InitGasTemp |
double InitGasU |
double MassTable[NTYPES] |
int MaxFilesWithConcurrentIO |
double MaxNumNgbDeviation |
double MinEgySpec |
double MinSizeTimestep |
double NgbTreeAllocFactor |
int NumCurrentTiStep |
int NumFilesPerSnapshot |
double Omega0 |
double OmegaBaryon |
double OmegaLambda |
char OutputDir[MAXLEN_PATH] |
char OutputListFilename[MAXLEN_PATH] |
char OutputListFlag[MAXLEN_OUTPUTLIST] |
int OutputListLength |
int OutputListOn |
double OutputListTimes[MAXLEN_OUTPUTLIST] |
char RelOpeningCriterionInUse |
enum restart_options RestartFlag |
int SnapFormat |
char SnapshotFileBase[MAXLEN_PATH] |
int SnapshotFileCount |
double SofteningComoving[NSOFTCLASSES] |
double SofteningMaxPhys[NSOFTCLASSES] |
double SofteningTable[NSOFTCLASSES+ NSOFTCLASSES_HYDRO] |
integertime Ti_begstep[TIMEBINS] |
integertime Ti_Current |
integertime Ti_lastoutput |
integertime Ti_nextoutput |
double Timebase_interval |
double TimeBegin |
double TimeBetSnapshot |
double TimeBetStatistics |
double TimeLastRestartFile |
double TimeLastStatistics |
double TimeMax |
double TimeOfFirstSnapshot |
double TimeOld |
double TimeStep |
double TopNodeAllocFactor |
long long TotNumDensity |
long long TotNumDirectForces |
long long TotNumHydro |
long long TotNumOfForces |
double TreeAllocFactor |
int TypeOfOpeningCriterion |
double UnitCoolingRate_in_cgs |
double UnitDensity_in_cgs |
double UnitEnergy_in_cgs |
double UnitLength_in_cm |
double UnitMass_in_g |
double UnitPressure_in_cgs |
double UnitTime_in_Megayears |
double UnitTime_in_s |
double UnitTime_in_years |
double UnitVelocity_in_cm_per_s |