The FARGO_THORIN code developer's guide
|
Contains the functions required to read the parameter file, and functions that provide runtime information. More...
#include "fargo.h"
Go to the source code of this file.
Macros | |
#define | MAXVARIABLES 500 |
Functions | |
void | var (char *name, char *ptr, int type, int necessary, char *deflt) |
void | ReadVariables (char *filename) |
void | PrintUsage (char *execname) |
real | TellNbOrbits (real time) |
real | TellNbOutputs (real time) |
void | TellEverything () |
void | GiveTimeInfo (int number) |
void | InitSpecificTime (boolean profiling, TimeProcess *process_name, char *title) |
void | GiveSpecificTime (boolean profiling, TimeProcess process_name) |
Variables | |
int | begin_i |
boolean | OpenInner |
boolean | Restart |
static Param | VariableSet [MAXVARIABLES] |
static int | VariableIndex = 0 |
static int | FirstStep = YES |
static clock_t | First |
static clock_t | Preceeding |
static clock_t | Current |
static clock_t | FirstUser |
static clock_t | CurrentUser |
static clock_t | PreceedingUser |
static long | Ticks |
boolean | FastTransport = YES |
boolean | GuidingCenter = NO |
boolean | IsDisk = YES |
boolean | NonReflecting = NO |
boolean | Corotating = NO |
boolean | OuterSourceMass = NO |
boolean | Write_Density = YES |
boolean | Write_Velocity = YES |
boolean | Indirect_Term = YES |
Contains the functions required to read the parameter file, and functions that provide runtime information.
The function var() associates a string to a global variable. The function ReadVariables() reads the content of a parameter file. In addition, this file contains a function that prints the command line usage to the standard output, a function that provides verbose information about the setup (if the -v switch is set on the command line), and functions that act as a chronometer (if the -t switch is set on the command line).
Definition in file Interpret.c.
#define MAXVARIABLES 500 |
Definition at line 20 of file Interpret.c.
void GiveSpecificTime | ( | boolean | profiling, |
TimeProcess | process_name | ||
) |
Definition at line 402 of file Interpret.c.
References timeprocess::clicks, timeprocess::name, NO, and Ticks.
Referenced by main().
void GiveTimeInfo | ( | int | number | ) |
Definition at line 358 of file Interpret.c.
References begin_i, Current, CurrentUser, First, FirstStep, FirstUser, NINTERM, NO, Preceeding, PreceedingUser, Ticks, and YES.
Referenced by main().
void InitSpecificTime | ( | boolean | profiling, |
TimeProcess * | process_name, | ||
char * | title | ||
) |
Definition at line 389 of file Interpret.c.
References timeprocess::clicks, timeprocess::name, NO, and Ticks.
Referenced by main().
void PrintUsage | ( | char * | execname | ) |
Definition at line 238 of file Interpret.c.
References mastererr(), and prs_exit().
Referenced by main().
void ReadVariables | ( | char * | filename | ) |
Definition at line 65 of file Interpret.c.
References AccretHeating, ACCRETIONALHEATING, AdvecteLabel, ADVLABEL, ALPHAVISCOSITY, BackReaction, BACKREACTION, Collisions, COOLINGTIME, Corotating, Damping, DampInit, DAMPTOWARDS, DampVrad, DiffusiveParticles, DISK, EnergyEq, ENERGYEQUATION, ExcludeHill, EXCLUDEHILL, FastTransport, FeelDisk, FRAME, GETTORQUEFORPLANET, GRIDSPACING, GuidingCenter, Indirect_Term, INDIRECTTERM, InitFromFile, INITIALIZEFROMFILE, InitVariables(), INT, IsDisk, LogGrid, mastererr(), masterprint(), MonitorNPL, NewOutputdir, NO, NonReflecting, OpenInner, OPENINNERBOUNDARY, OuterSourceMass, OUTERSOURCEMASS, OUTPUTDIR, OverridesOutputdir, PARAMETRICACCRETION, ParametricCooling, PARTICLEDIFFUSION, PEBBLEACCRETION, Pebbles, PLANETSFEELDISK, PrescribedAccretion, prs_exit(), param::read, REAL, RESOLVECOLLISIONS, ROCHESMOOTHING, RocheSmoothing, StellarIrradiation, STELLARIRRADIATION, STRING, TARGETNPL, THICKNESSSMOOTHING, TorqueDensity, TORQUEMAPINFILE, TRANSPORT, VariableIndex, VISCOSITY, ViscosityAlpha, Write_Density, Write_Divergence, Write_Energy, Write_Eta, Write_Qbalance, Write_Qplus, Write_Temperature, Write_Velocity, WRITEDENSITY, WRITEDIVV, WRITEENERGY, WRITEETA, WRITEQBALANCE, WRITEQPLUS, WRITETEMPERATURE, WriteTorque, WRITETORQUEFILES, WriteTorqueMapFile, WRITEVELOCITY, and YES.
Referenced by main().
void TellEverything | ( | ) |
Definition at line 281 of file Interpret.c.
References AdvecteLabel, ASPECTRATIO, CPU_Master, DT, EnergyEq, G, NINTERM, NRAD, NSEC, NTOT, ParametricCooling, PI, RMAX, RMIN, SIGMA0, TellNbOrbits(), TellNbOutputs(), and YES.
Referenced by main().
Definition at line 269 of file Interpret.c.
Referenced by TellEverything().
Definition at line 275 of file Interpret.c.
Referenced by TellEverything().
void var | ( | char * | name, |
char * | ptr, | ||
int | type, | ||
int | necessary, | ||
char * | deflt | ||
) |
Definition at line 34 of file Interpret.c.
References INT, param::necessary, NO, param::read, REAL, STRING, param::type, param::variable, and VariableIndex.
Referenced by InitVariables().
int begin_i |
Definition at line 15 of file main.c.
Referenced by GiveTimeInfo(), and main().
Definition at line 30 of file Interpret.c.
Referenced by AlgoGas(), main(), and ReadVariables().
|
static |
Definition at line 27 of file Interpret.c.
Referenced by GiveTimeInfo().
|
static |
Definition at line 27 of file Interpret.c.
Referenced by GiveTimeInfo().
Definition at line 29 of file Interpret.c.
Referenced by ComputeResiduals(), ConditionCFL(), CriticalCharTime(), OneWindTheta(), OneWindThetaPebbles(), and ReadVariables().
|
static |
Definition at line 27 of file Interpret.c.
Referenced by GiveTimeInfo().
|
static |
Definition at line 26 of file Interpret.c.
Referenced by GiveTimeInfo().
|
static |
Definition at line 27 of file Interpret.c.
Referenced by GiveTimeInfo().
Definition at line 29 of file Interpret.c.
Referenced by GetPsysInfo(), GetPsysInfoFromRsim(), and ReadVariables().
Definition at line 31 of file Interpret.c.
Referenced by FillForcesArrays(), and ReadVariables().
Definition at line 30 of file Interpret.c.
Referenced by AlgoGas(), ReadVariables(), and SendOutput().
Definition at line 30 of file Interpret.c.
Referenced by ApplyBoundaryCondition(), and ReadVariables().
boolean OpenInner |
Definition at line 14 of file main.c.
Referenced by ReadVariables().
Definition at line 30 of file Interpret.c.
Referenced by ApplyBoundaryCondition(), and ReadVariables().
|
static |
Definition at line 27 of file Interpret.c.
Referenced by GiveTimeInfo().
|
static |
Definition at line 27 of file Interpret.c.
Referenced by GiveTimeInfo().
|
static |
Definition at line 28 of file Interpret.c.
Referenced by GiveSpecificTime(), GiveTimeInfo(), and InitSpecificTime().
|
static |
Definition at line 25 of file Interpret.c.
Referenced by ReadVariables(), and var().
|
static |
Definition at line 24 of file Interpret.c.
Definition at line 31 of file Interpret.c.
Referenced by ReadVariables(), and SendOutput().
Definition at line 31 of file Interpret.c.
Referenced by ReadVariables(), and SendOutput().