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

Macros

#define _CRT_SECURE_NO_DEPRECATE
 
#define WRITE(x)   (report_writeLine((x)))
 
#define LINE_10   "----------"
 
#define LINE_12   "------------"
 
#define LINE_51   "---------------------------------------------------"
 
#define LINE_64   "----------------------------------------------------------------"
 
#define REAL4   float
 

Functions

int report_readOptions (char *tok[], int ntoks)
 Reads reporting options from a line of input data.
 
void report_writeLine (const char *line)
 Writes a line of text to the report file.
 
void report_writeSysTime (void)
 Writes starting/ending processing times to the report file.
 
void report_writeLogo ()
 Writes report header lines to report file.
 
void report_writeTitle ()
 Writes project title to report file.
 
void report_writeOptions ()
 Writes analysis options in use to report file.
 
void report_writeRainStats (int i, TRainStats *r)
 Writes summary of rain data read from input file to report file.
 
void report_writeRdiiStats (double rainVol, double rdiiVol)
 Writes summary of RDII inflow to report file.
 
void report_writeControlActionsHeading ()
 Writes summary control actions heading to report file.
 
void report_writeControlAction (DateTime aDate, char *linkID, double value, char *ruleID)
 Writes control action to report file.
 
void report_writeRunoffError (TRunoffTotals *totals, double totalArea)
 Writes runoff continuity error to report file.
 
void report_writeLoadingError (TLoadingTotals *totals)
 Writes runoff loading continuity error to report file.
 
void report_writeGwaterError (TGwaterTotals *totals, double gwArea)
 Writes groundwater continuity error to report file.
 
void report_writeFlowError (TRoutingTotals *totals)
 Writes flow routing continuity error to report file.
 
void report_writeQualError (TRoutingTotals *QualTotals)
 Writes quality routing continuity error to report file.
 
void report_writeMaxStats (TMaxStats maxMassBalErrs[], TMaxStats maxCourantCrit[], int nMaxStats)
 Lists nodes and links with highest mass balance errors and courant time step violations to report file.
 
void report_writeMaxFlowTurns (TMaxStats flowTurns[], int nMaxStats)
 Lists links with highest number of flow turns to report (i.e., fraction of time periods where the flow is higher (or lower) than the flows in the previous and following periods)
 
void report_writeNonconvergedStats (TMaxStats maxNonconverged[], int nMaxStats)
 Writes non-converging nodes to report file.
 
void report_writeTimeStepStats (TTimeStepStats *timeStepStats)
 Writes routing time step statistics to report file.
 
void report_writeReport ()
 Writes project title to report file.
 
void report_writeErrorMsg (int code, char *s)
 Writes error message to report file.
 
void report_writeErrorCode ()
 Writes error message to report file.
 
void report_writeInputErrorMsg (int k, int sect, char *line, long lineCount)
 Writes input error message to report file.
 
void report_writeWarningMsg (char *msg, char *id)
 Writes a warning message to report file.
 
void report_writeTseriesErrorMsg (int code, TTable *tseries)
 Writes the date where a time series' data is out of order.
 

Variables

REAL4SubcatchResults
 
REAL4NodeResults
 
REAL4LinkResults
 
char ErrString [81]
 
TNodeStatsNodeStats
 

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

◆ LINE_10

#define LINE_10   "----------"

◆ LINE_12

#define LINE_12   "------------"

◆ LINE_51

#define LINE_51   "---------------------------------------------------"

◆ LINE_64

#define LINE_64   "----------------------------------------------------------------"

◆ REAL4

#define REAL4   float

◆ WRITE

#define WRITE (   x)    (report_writeLine((x)))

Variable Documentation

◆ ErrString

char ErrString[81]
extern

◆ LinkResults

REAL4* LinkResults
extern

◆ NodeResults

REAL4* NodeResults
extern

◆ NodeStats

TNodeStats* NodeStats
extern

◆ SubcatchResults

REAL4* SubcatchResults
extern