OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
gage.c File Reference
#include <string.h>
#include <math.h>
#include "headers.h"
Include dependency graph for gage.c:

Macros

#define _CRT_SECURE_NO_DEPRECATE
 

Functions

int gage_readParams (int gageIndex, char *tok[], int ntoks)
 Reads rain gage parameters from a line of input data.
 
void gage_validate (int gageIndex)
 Checks for valid rain gage parameters.
 
void gage_initState (int j)
 Initializes state of a rain gage.
 
void gage_setState (int j, DateTime t)
 Updates state of rain gage for specified date.
 
void gage_updatePastRain (int gageIndex, int tStep)
 Updates past MAXPASTRAIN hourly rain totals.
 
double gage_getPastRain (int j, int n)
 Retrieves rainfall total over some previous number of hours.
 
DateTime gage_getNextRainDate (int gageIndex, DateTime aDate)
 Finds the next date from specified date when rainfall occurs.
 
double gage_getPrecip (int gageIndex, double *rainfall, double *snowfall)
 Determines whether gage's recorded rainfall is rain or snow.
 
void gage_setReportRainfall (int gageIndex, DateTime reportDate)
 Sets the rainfall value reported at the current reporting time.
 

Variables

const double OneSecond = 1.1574074e-5
 

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

Variable Documentation

◆ OneSecond

const double OneSecond = 1.1574074e-5