12#include "gadgetconfig.h"
14#include "../data/allvars.h"
15#include "../data/constants.h"
16#include "../data/dtypes.h"
17#include "../data/macros.h"
18#include "../time_integration/driftfac.h"
117 sprintf(buf_l,
"SofteningComovingClass%d", i);
124 sprintf(buf_l,
"SofteningMaxPhysClass%d", i);
128 for(
int i = 0; i <
NTYPES; i++)
131 sprintf(buf_l,
"SofteningClassOfPartType%d", i);
135#if defined(TREEPM_NOTIMESPLIT) || defined(PLACEHIGHRESREGION)
139#ifdef ADAPTIVE_HYDRO_SOFTENING
145#ifdef TIMEDEP_ART_VISC
153#ifdef LIGHTCONE_PARTICLES
157#ifdef LIGHTCONE_MASSMAPS
198#ifdef EXTERNALGRAVITY_STATICHQ
217 if(!(fd = fopen(fname,
"r")))
219 Terminate(
"can't read output list in file '%s'\n", fname);
227 if(fgets(buf, 500, fd) != buf)
236 if(count == 1 || count == 2)
259 mpi_printf(
"NOTICE: MaxFilesWithConcurrentIO has been reduced to the number of processors\n");
265 mpi_printf(
"NOTICE: MaxFilesWithConcurrentIO has been set to be equal to the number of processors\n");
269 if(SnapFormat < 1 || SnapFormat > 3)
274 mpi_printf(
"WARNING: Number of processors less than 'NumFilesPerSnapshot=%d' - reducing this to NumFilesPerSnapshot=%d\n",
279 for(
int i = 0; i <
NTYPES; i++)
static double hubble_function(double a)
void add_param(const char *name, void *buf, int type, int flag)
void mpi_printf(const char *fmt,...)
#define MAXLEN_OUTPUTLIST
expr pow(half base, half exp)
int SofteningClassOfPartType[NTYPES]
double UnitVelocity_in_cm_per_s
int MaxFilesWithConcurrentIO
double cf_atime2_hubble_a
void read_outputlist(char *fname)
This function reads a table with a list of desired output times.
double SofteningMaxPhys[NSOFTCLASSES]
void register_parameters(void)
double TimeOfFirstSnapshot
int ComovingIntegrationOn
double MaxNumNgbDeviation
char OutputListFilename[MAXLEN_PATH]
char OutputDir[MAXLEN_PATH]
double SofteningComoving[NSOFTCLASSES]
void some_parameter_checks(void)
double OutputListTimes[MAXLEN_OUTPUTLIST]
char SnapshotFileBase[MAXLEN_PATH]
double GravityConstantInternal
void set_cosmo_factors_for_current_time(void)
double ActivePartFracForNewDomainDecomp
int TypeOfOpeningCriterion
size_t get_data_size(void)
char OutputListFlag[MAXLEN_OUTPUTLIST]
char * get_data_ptr(void)
double CpuTimeBetRestartFile
char InitCondFile[MAXLEN_PATH]