Run Namespace Reference

Processing command-line and execution control parameters. More...


Classes

struct  Time
 Execution time-control structure. More...

Functions

void testrnd ()
 Test random numer generator.
REAL rnd ()
 Seeds random number.
REAL gauss ()
 normal random number generator
void init (int argc, char *argv[])
 Initialize all variables, and execution options.
void readcmdline (int argc, char *argv[])
 Parses command-line options.
int elapsed ()
 time (sec) elapsed since the start of the run
void seed ()
 seed random number generator
void(*) usage ()

Variables

struct Option option = {0,0,0,0}
 command-line options
void(* usage )()
char programname [MAXLINLEN]
char configfile [MAXLINLEN]
char outputfile [MAXLINLEN]
char inputfile [MAXLINLEN]
char outputname [MAXLINLEN]
int nthreads
struct timeb worldtime
struct Time time


Detailed Description

Processing command-line and execution control parameters.


Function Documentation

int Run::elapsed (  ) 

time (sec) elapsed since the start of the run

Definition at line 138 of file run.cc.

References worldtime.

Referenced by Domain::save().

REAL Run::gauss (  ) 

normal random number generator

From Numerical Recepes in C, Ch.7.2 Zero mean and unit variance

Definition at line 57 of file run.cc.

References REAL, and rnd().

void Run::init ( int  argc,
char *  argv[] 
)

Initialize all variables, and execution options.

Definition at line 79 of file run.cc.

References configfile, Option::debug, IO::getTime(), Option::mesh, option, readcmdline(), Option::restart, Option::verbose, worldtime, and Option::xterm.

Referenced by main().

void Run::readcmdline ( int  argc,
char *  argv[] 
)

Parses command-line options.

Definition at line 93 of file run.cc.

References configfile, Option::debug, inputfile, Option::mesh, option, outputfile, outputname, programname, Option::restart, and Option::verbose.

Referenced by init().

REAL Run::rnd (  ) 

Seeds random number.

random number generator

Generates random number between 0 and 1

Definition at line 51 of file run.cc.

References RAND_MAX, and REAL.

Referenced by gauss(), and testrnd().

void Run::seed (  ) 

seed random number generator

void Run::testrnd (  ) 

Test random numer generator.

Definition at line 31 of file run.cc.

References RAND_MAX, REAL, and rnd().

void(*) Run::usage (  ) 

Definition at line 23 of file job.cc.

References programname.


Variable Documentation

Definition at line 20 of file run.cc.

Referenced by Domain::Domain(), init(), main(), readcmdline(), and Gui::readconf().

Definition at line 20 of file run.cc.

Referenced by main(), and readcmdline().

Definition at line 26 of file run.cc.

Referenced by Domain::interaction(), and Domain::run().

struct Option Run::option = {0,0,0,0} [read]

Definition at line 20 of file run.cc.

Referenced by readcmdline().

Definition at line 20 of file run.cc.

Referenced by Gui::helpCommand(), Gui::helpDisplay(), Gui::keyboard(), readcmdline(), and Domain::run().

Definition at line 20 of file run.cc.

Referenced by main(), readcmdline(), usage(), and usage().

struct Time Run::time [read]

void(* Run::usage)() (  ) 

struct timeb Run::worldtime

Definition at line 28 of file run.cc.

Referenced by elapsed(), and init().


Generated on Tue May 26 16:10:36 2009 for ReMoDy by  doxygen 1.5.7.1