Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

SimParameters.C File Reference

#include "InfoStream.h"
#include "ComputeNonbondedUtil.h"
#include "ConfigList.h"
#include "SimParameters.h"
#include "ParseOptions.h"
#include "structures.h"
#include "Communicate.h"
#include "MStream.h"
#include <stdio.h>
#include <time.h>
#include <sfftw.h>
#include <srfftw.h>
#include <unistd.h>
#include <fstream>
#include "strlib.h"
#include "Debug.h"

Go to the source code of this file.

Defines

#define CHDIR   chdir
#define PATHSEP   '/'
#define PATHSEPSTR   "/"
#define XXXBIGREAL   1.0e32
#define MAX_SCRIPT_PARAM_SIZE   128
#define SCRIPT_PARSE_BOOL(NAME, VAR)   { if ( ! strncasecmp(param,(NAME),MAX_SCRIPT_PARAM_SIZE) ) { (VAR) = atobool(value); return; } }
#define SCRIPT_PARSE_INT(NAME, VAR)   { if ( ! strncasecmp(param,(NAME),MAX_SCRIPT_PARAM_SIZE) ) { (VAR) = atoi(value); return; } }
#define SCRIPT_PARSE_FLOAT(NAME, VAR)   { if ( ! strncasecmp(param,(NAME),MAX_SCRIPT_PARAM_SIZE) ) { (VAR) = atof(value); return; } }
#define SCRIPT_PARSE_MOD_FLOAT(NAME, VAR, MOD)   { if ( ! strncasecmp(param,(NAME),MAX_SCRIPT_PARAM_SIZE) ) { (VAR) = atof(value) MOD; return; } }
#define SCRIPT_PARSE_VECTOR(NAME, VAR)   { if ( ! strncasecmp(param,(NAME),MAX_SCRIPT_PARAM_SIZE) ) { (VAR).set(value); return; } }
#define SCRIPT_PARSE_STRING(NAME, VAR)   { if ( ! strncasecmp(param,(NAME),MAX_SCRIPT_PARAM_SIZE) ) { strcpy(VAR,value); return; } }
#define BoolToString(b)   ((b) ? "TRUE" : "FALSE")

Functions

int atobool (const char *s)


Detailed Description

SimParameters is just a glorified structure to hold the global static simulation parameters such as timestep size, cutoff, etc. that are read in from the configuration file.

Definition in file SimParameters.C.


Define Documentation

#define BoolToString  )     ((b) ? "TRUE" : "FALSE")
 

Definition at line 4451 of file SimParameters.C.

#define CHDIR   chdir
 

Definition at line 46 of file SimParameters.C.

#define MAX_SCRIPT_PARAM_SIZE   128
 

#define PATHSEP   '/'
 

Definition at line 47 of file SimParameters.C.

#define PATHSEPSTR   "/"
 

Definition at line 48 of file SimParameters.C.

#define SCRIPT_PARSE_BOOL NAME,
VAR   )     { if ( ! strncasecmp(param,(NAME),MAX_SCRIPT_PARAM_SIZE) ) { (VAR) = atobool(value); return; } }
 

Referenced by SimParameters::scriptSet().

#define SCRIPT_PARSE_FLOAT NAME,
VAR   )     { if ( ! strncasecmp(param,(NAME),MAX_SCRIPT_PARAM_SIZE) ) { (VAR) = atof(value); return; } }
 

Referenced by SimParameters::scriptSet().

#define SCRIPT_PARSE_INT NAME,
VAR   )     { if ( ! strncasecmp(param,(NAME),MAX_SCRIPT_PARAM_SIZE) ) { (VAR) = atoi(value); return; } }
 

Referenced by SimParameters::scriptSet().

#define SCRIPT_PARSE_MOD_FLOAT NAME,
VAR,
MOD   )     { if ( ! strncasecmp(param,(NAME),MAX_SCRIPT_PARAM_SIZE) ) { (VAR) = atof(value) MOD; return; } }
 

Referenced by SimParameters::scriptSet().

#define SCRIPT_PARSE_STRING NAME,
VAR   )     { if ( ! strncasecmp(param,(NAME),MAX_SCRIPT_PARAM_SIZE) ) { strcpy(VAR,value); return; } }
 

Referenced by SimParameters::scriptSet().

#define SCRIPT_PARSE_VECTOR NAME,
VAR   )     { if ( ! strncasecmp(param,(NAME),MAX_SCRIPT_PARAM_SIZE) ) { (VAR).set(value); return; } }
 

Referenced by SimParameters::scriptSet().

#define XXXBIGREAL   1.0e32
 

Definition at line 64 of file SimParameters.C.


Function Documentation

int atobool const char *  s  ) 
 

Definition at line 113 of file SimParameters.C.

Referenced by SimParameters::scriptSet().

00113                            {
00114   return ( (! strncasecmp(s,"yes",8)) ||
00115            (! strncasecmp(s,"on",8)) || 
00116            (! strncasecmp(s,"true",8)) );
00117 };


Generated on Tue Nov 24 04:07:47 2009 for NAMD by  doxygen 1.3.9.1