OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
project.c File Reference

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"
Include dependency graph for project.c:

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.
 

Detailed Description

Legacy project file handling, allocation, and lifecycle management.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com (OpenSWMM maintenance and extensions)
License
Apache-2.0 for OpenSWMM contributions; original EPA SWMM provenance is retained.

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

Function Documentation

◆ omp_get_max_threads()

int omp_get_max_threads ( void )

Supply the serial-build fallback for the OpenMP maximum thread count.

Returns
One. Compiled only for builds without the OpenMP runtime interface.
Here is the caller graph for this function: