![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
Legacy project file handling, allocation, and lifecycle management. More...
#include <stdlib.h>#include <string.h>#include <math.h>#include "headers.h"#include "lid.h"#include "hash.h"#include "mempool.h"Macros | |
| #define | _CRT_SECURE_NO_DEPRECATE |
Functions | |
| int | omp_get_max_threads (void) |
| Supply the serial-build fallback for the OpenMP maximum thread count. | |
| void | project_open (const char *inp_file, const char *rpt_file, const char *out_file) |
| Opens a new SWMM project. | |
| void | project_readInput () |
| Retrieves project data from input file. | |
| void | project_validate () |
| Checks validity of project data. | |
| void | project_close () |
| Closes a SWMM project. | |
| int | project_init (void) |
| Initializes the internal state of all objects. | |
| int | project_addObject (int type, char *id, int n) |
| Adds an object ID to a hash table. | |
| int | project_findObject (int type, const char *id) |
| Uses hash table to find index of an object with a given ID. | |
| char * | project_findID (int type, char *id) |
| Uses hash table to find address of given string entry. | |
| double ** | project_createMatrix (int nrows, int ncols) |
| Allocates memory for a matrix of doubles. | |
| void | project_freeMatrix (double **a) |
| Frees memory allocated for a matrix of doubles. | |
| int | project_readOption (char *s1, char *s2) |
| Reads a project option from a pair of string tokens. | |
Legacy project file handling, allocation, and lifecycle management.
| #define _CRT_SECURE_NO_DEPRECATE |
| int omp_get_max_threads | ( | void | ) |
Supply the serial-build fallback for the OpenMP maximum thread count.