control
Contents
control.c
These subroutines deal with control, including I/O, units, and files.
- Author
Rory Barnes (RoryBarnes)
- Date
Jan 7 2015
Functions
-
int strcicmp(char const *a, char const *b)
Case-insensitive
strcmp
-
int compare_option_names(const void *p, const void *q)
Comparison function for option names.
-
int compare_output_names(const void *p, const void *q)
Comparison function for output names.
-
void InitializeFiles(FILES *files, OPTIONS *options, char *sPrimaryFile, char **saBodyFiles, int iNumBodies)
-
void InitializeControlEvolve(BODY *body, CONTROL *control, MODULE *module, UPDATE *update)
This function performs the following tasks:
1) Allocates control->Evolve.fnBodyCopy, iNumMultiProps, tmpUpdate, daDeriv, and control->iNumMultiProps. 2) Initializes control->bOrbiters 3) Initializes control->Evolve.iNumModules
-
void PrintFileTypes(int iFileType, int bPadString)
-
void WriteDescription(char cLongDescr[], char cDescr[], int iMaxChars)
-
void LineExit(char cFile[], int iLine)
-
char *sLower(char cString[])
-
void fprintd(FILE *fp, double x, int iExp, int iDig)
-
void AllocateStringMemory(char **sString, int iStringLength)
-
void fvFormattedString(char **sString, const char *sFormattedString, ...)
-
double fdUnitsLength(int iType)
-
void fsUnitsLength(int iType, char **cUnit)
-
double fdUnitsTime(int iType)
-
void fsUnitsTime(int iType, char **cUnit)
-
double fdUnitsMass(int iType)
-
void fsUnitsMass(int iType, char **cUnit)
-
double fdUnitsAngle(int iType)
-
void fsUnitsAngle(int iType, char **cUnit)
-
void fsUnitsRate(int iType, char **cUnit)
-
void fsUnitsRateSquared(int iType, char **cUnit)
-
double fdUnitsEnergy(int iTime, int iMass, int iLength)
-
double fdUnitsPower(int iTime, int iMass, int iLength)
-
double fdUnitsEnergyFlux(int iTime, int iMass, int iLength)
-
double fdUnitsTemp(double dTemp, int iOldType, int iNewType)
-
void fsUnitsTemp(int iType, char **cUnit)
-
void fsUnitsTempRate(int iType, char **cUnit)
-
struct SORTED_OPTIONS
Dummy struct used to sort options.
-
struct SORTED_OUTPUT
Dummy struct used to sort output.
control.h
These subroutines deal with control, including I/O, units, and files.
- Author
Rory Barnes (RoryBarnes)
- Date
Jan 7 2015