Skip to content

Commit 4d8d82d

Browse files
authored
v2.2
* removing reference to strncpy * Fixing memory problems with test_toolkit Fixes memory leaks and some minor refactoring. * Update test_toolkit.hpp removing crtdbg.h from header * Update CMakeLists.txt Restoring test_net_builder to test_toolkit.exe * Cleaning up include statements adding crtdbg.h * Fixing index error in test * Add more analysis options to the API (issue #425) * Fixed epanet2_enums.h * Eliminates use of temporary linked lists to process Patterns & Curves (issue #449) * Update input2.c * Bug fix for 2Comp and LIFO tank mixing models (issue #448) * Triggering build to update benchmarks * Added new reg tests Updating reference build id * Initial commit list generic linked list * Update test_list.cpp Tests are passing * Update list.h Adding documentation * Fix typo * Fixing bug in head_list * Fixing indentation * Fixed memory leak Fixed memory leak in test_head_list * Clean up and inline comments * Updating file headers * Update list.c Updating in line comments. * Update test_list.cpp * Fixing indent Spaces not tabs * Update list.c Fixing indent * Update test_list.cpp Updating file header to reflect proper attribution * Expanding test Added test where data is a struct * Fixing indent * Work in progress * Reorganized to contain list abstraction * Update list.c * Refactoring head_list and tail_list Simplifying head and tail list. Adding delete_node() to list API. * Update test_list.cpp * Update test_list.cpp Fixing bug on gcc * Fixing bug * Fixing bug on gcc * Update CMakeLists.txt Adding test_list to ctest * Fixes memory leak in EN_addnode() (#455) * Fixing memory leak in EN_addnode() * Separating test_net_builder from test_toolkit Making test_net_builder a standalone test * Removing BOOST_TEST_MAIN * Work in progress * Updating unit tests * Fixing compilation bug on gcc * Work in progress compiles with warnings, definitely not working * Update demand.h * Work in progress Implementing demand_list * Work in progress Creating function for validateing element ID strings * Work in progress Refactoring cstr_copy and adding test * Update cstr_helper.c fixing indentation * Update cstr_helper.c Fixing indentation * Update test_cstrhelper.cpp Fixed mem leak * Adding element id validity checks * Adding element id validity check Adding checks for element set id functions * Fixing build warnings on gcc * Update errror code from 250 to 252 * Work in progress Implementing generic demand pattern lists. Compiles but does not run. * Update demand.c Work in progress * Return object index from EN_addnode and EN_addlink (issue #432) Adds an output argument to EN_addnode and EN_addlink that returns the index of the newly added object. Also refactors the validity check on object ID names. * Fixed compilation errors * Update test_node.cpp * Create test_demand_data.cpp * test demand data passing * Work in progress Fixing problems when demand lists are null * Passing open and close test * get/set demand name are passing * Updated criteria for valid object ID name * Work in progress * Work in progress Working on demand lists * Work in progress Fixing memory leaks Unit tests passing * Cleaning up build on gcc * Cleaning up gcc build * Fixing bug * Working on gcc bug Tests are passing on Appveyor * Update inpfile.c Trying to isolate bug * GCC Bug * Refactored xstrcpy function * Update inpfile.c Testing linux build * Update epanet.c Trying to isolate bug * updating get demand name and write demands Everything passing locally * Update test_project.cpp Isolating bug on gcc * Isolating bug Not writing demand section of input file should eliminate it * Update demand.c Fixing bug in get_category_name when category_name is NULL * Restoring write_demands section in saveinpfile * Update test_demand_data.cpp Adding index to addnode calls. Fixing indent * Update demand.c * Reverted handling of default pattern When creating demands, no pattern is marked with a zero. Then when data is adjusted it gets updated to default. * Update epanet.c Updating EN_getnodevalue() and EN_setnodevalue() to process the primary demand located at the head of the demand list * Update demand.c * Work in progress code cleanup, addressed issue raised in review, and implemented EN_adddemand() * Adding key and search to list * Adding remove node method to generic list * Adding remove demand method to toolkit * Fix bug and test remove demand * Fix problems with setting tank parameters (issue #464 ) * Fixed NULL pointer error, if no label is provided after the rule keyword. * Create Makefile2.bat Co-Authored-By: Demetrios G. Eliades <[email protected]> Co-Authored-By: Elad Salomons <[email protected]> * Create LICENSE * Fixed NULL pointer error, if no label is provided after the rule keyword. Add NULL guard in freerules function. Use strncat and strncpy to ensure the buffer lengths are adhered to. * For "conditional" do delete a node connected to a link For "conditional" deletion the node is deleted only if all of its links have been explicitly deleted beforehand #473 Co-Authored-By: Lew Rossman <[email protected]> * Create CODE_OF_CONDUCT.md * Refactors the API's demand editing functions * Update test_demand.cpp * Update CODE_OF_CONDUCT.md * Update rules.c Fix broken win build script * Updates to doc files * Documentation edits * Update Makefile.bat Updates on the Microsoft SDK 7.1 compilation script to generate runepanet.exe and to use the \include\epanet2.def * Update Makefile2.bat Modified epanet2.exe to runepanet.exe, for consistency. * Delete epanet2.def Deleted the redundant `epanet2.def` file in the WindSDK folder * Minor format change to status report * Removing status reports from CI testing * rm WinSDK folder and update Makefiles Co-Authored-By: Demetrios G. Eliades <[email protected]> * Restored CI testing of status reports * Removes _DEBUG directives from all source files This commit removes the #ifdef _DEBUG statements at the top of all source code files per issue #482. It also updates the doc files to stress that the speedup observed for hydraulic analysis with the MMD node re-ordering method only applies to single period runs. * Fix refactor of types.h * updates authors * updates AUTHORS and generator script * Update run\CMakeLists.txt * add help file win_build.md Co-Authored-By: Elad Salomons <[email protected]> * move win_build.md to root dir and renaiming to BUILDING.md * Move BuildAndTest.md to the tools directory * Update BUILDING.md * Update BUILDING.md * Update BUILDING.md * Fixes problem with findpattern() function (issue #498) * Change default properties for new pipe created with EN_addlink (issue #500) * Numerous updates to project documentation * Adds tank overflow feature * Updating docs for tank overflow feature * Updating VB include files * Update input3.c * Identifies overflowing tank in Status Report * Update Makefile.bat * Update Makefile2.bat #508 * rethinking the python wrapper (#511) * renames certain function parameter declarations and removes double pointer call from the deleteproject function * deprecates conditonal compilation, removes python-specific headers and function renaming * fixes tests and docs * fixes test * PDA fixes * Minor update to force new CI test * Another minor change to force another CI test * Fixes Overflow and PDA tests not being run * Fix EN_getElseaction and EN_setelseaction Co-Authored-By: Andreas Ashikkis <[email protected]> * Add -MT switch for CMake Windows build * Updates to the docs * Update BUILDING.md * Build script updates * Fixes EN_setlinkvalue bug * fix in EN_deleteLink when pipes are deleted via deletelink it also deletes comment of last link Co-Authored-By: Pavlos Pavlou <[email protected]> * rm set to null in functions EN_deletenode, EN_deletelink * trial actions config * Update ccpp.yml * welcome to the Actions beta * fixes mkstemp file handle-leaking behavior (#529) * reverts posix include (#533) ... because it is not needed * Fixes bugs in pump and demand head loss gradients * Removed dependence on unistd.h in project.c Travis CI failed because system could not find unistd.h. * getTmpName() and xstrcpy() made safer * Fixed use of strncpy in xstrcpy() * Refactor of hydcoeffs.c Simplifies and unifies how limit on head gradient at low flow is handled. * Update ReleaseNotes2_2.md * Return error if node/link name is too long (#535) * co-authored with @ehsan-shafiee * removes errant slashes * Throws correct error for ID name too long * Revert "Throws correct error for ID name too long" This reverts commit 57b4873. * fixes #534 by bubbling error codes up from add node/link internal functions * fixes tests on Mac at least * fixes improper success code * Error 252 (not 250) returned for ID name too long. From errors.dat: DAT(252,"invalid ID name") * Fixes problems with EN_addnode() (#543) See issue #542 . Also modifies unit test test_node to check that fixup works. * Adds EN_getresultindex function to the API See issue #546 . Also fixes a small bug in project.c. * Adds link vertex get/set functions to the API * Fixes to EN_addlink and EN_deletelink * Updates the docs * Bug fix for EN_setcurve Adjusts params of any pump that uses the curve whose data is modified by EN_setcurve or EN_setcurvevalue (issue #550 ). * Bug fix for EN_getrule Fixes possible seg fault condition in EN_getrule. Also defines EN_MISSING as an API constant since it can be assigned internally to several variables that are retrievable by the API. * Updating the docs * Adds error check to EN_setheadcurveindex See issue #556 . * Update epanet2.pas * Incorrect characterd There was a character ’ instead of ' which created an error when compiling LaTeX. * fixes a crashing issue in freedata (#559) The freedata function used cached values for sizes of certain arrays found in the parser struct. However, now that the network is mutable, those values can become invalid. Relying instead on the actual array lengths prevents freeing unallocated memory, or ignoring cleanup on newly created elements. * Bug fix for valvecheck function See issue #561 * Restored prior update to project.c that got overwritten * Fixed editing errors made to project.c * PDF Guide PDF users' guide for EPANET, and some minor corrections to readme.md to fix some formatting issues. * HTML Users Guide * Fixes a "copy over" bug in input3.c The copying of one input line token over another was causing a compilation error under Clang. With v2.2 this copying is no longer needed so the line of code in question was simply deleted. This commit also deletes the HTML and Latex output generated by running Doxygen that got added from the previous update to dev since they don't really belong in a source code repo. * Correction made to doc files The output-format.dox file was deprecated and not included in the doxyfile so it was deleted. The description of the format of of the Energy Usage section of the binary output in toolkit-files.dox was corrected. * Update ReleaseNotes2_2.md I added the v2.2 contributing authors to the notes. I checked PR's from 2017 and beyond and these were the only names I could find. Please append any one I might have missed. * Fixes problem with re-opening const. HP pumps See latest comments in issue #528. Also, the setlinkflow() function was deleted as it was never called anywhere. * Update README.md (#539) * Update README.md * Update README.md Some section titles were re-named to conform to GitHub guidelines and the OWA info was moved to a CREDITS section. * Update README.md Added link to the Community Forum page. * Replaced OWA copyright with "(see AUTHORS)". * Update AUTHORS Copied format used by the OWA-SWMM project. * Update README.md The Disclaimer section was edited to reflect that there actually is a "collaborative" connection between USEPA and OWA. * updates CI badges * cleanup of readme links and unused files * possessive vs contraction * adding contributor to notes
1 parent 3638112 commit 4d8d82d

File tree

166 files changed

+77227
-21588
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+77227
-21588
lines changed

.github/workflows/ccpp.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: C/C++ CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: setup_build_dir
13+
run: mkdir buildproducts
14+
- name: cmake
15+
working-directory: ./buildproducts
16+
run: cmake ..
17+
- name: make
18+
working-directory: ./buildproducts
19+
run: make

.gitignore

+33-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ xcuserdata
4141
*~.nib/
4242
*.swp
4343
*~
44-
*.dat
4544
*.dep
4645

4746
*.xcodeproj/
@@ -202,3 +201,36 @@ $RECYCLE.BIN/
202201
# WindSDK compiled folders
203202
build/WinSDK/32bit/
204203
build/WinSDK/64bit/
204+
=======
205+
206+
207+
# Python compiler files
208+
*.py[c]
209+
210+
# Python distribution and packaging
211+
dist/
212+
temp/
213+
*.cfg
214+
*.egg-info/
215+
216+
# Eclipse Stuff
217+
.metadata/
218+
.settings/
219+
.project
220+
.cproject
221+
.pydevproject
222+
223+
# Testing Stuff
224+
nrtestsuite/
225+
tests/data/
226+
tests/outfile/data/en*
227+
228+
229+
#Cmake stuff
230+
__cmake_systeminformation/
231+
buildprod*/
232+
*_export.h
233+
234+
235+
# git merge
236+
*.orig

.mailmap

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
Sam Hatchett <[email protected]>
21
James Uber <[email protected]>
32
Demetrios Eliades <[email protected]>
43
Hyoungmin Woo <[email protected]>
54
65
Yunier Soad <[email protected]>
76
Jinduan Chen <[email protected]>
87
Maurizio Cingi <[email protected]>
9-
8+
9+
Angela Marchi <[email protected]>
10+
11+
Bryant McDonnell <[email protected]>
12+
Marios Kyriakou <[email protected]>
13+
14+
Sam Hatchett <[email protected]>
15+
16+
Markus Sunela <[email protected]>
17+
18+
Lew Rossman <[email protected]>
19+
20+
Michael Tryby <[email protected]> michaeltryby <[email protected]>

.travis.yml

+54-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,58 @@
1-
language: c
1+
language: python
2+
3+
matrix:
4+
include:
5+
# works on Precise and Trusty
6+
- os: linux
7+
addons:
8+
apt:
9+
sources:
10+
- sourceline: 'ppa:mhier/libboost-latest'
11+
- ubuntu-toolchain-r-test
12+
packages:
13+
- g++-7
14+
- boost1.67
15+
env:
16+
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
17+
- PLATFORM="linux"
18+
- REF_BUILD_ID="220dev1"
19+
20+
python:
21+
- "3.6"
22+
23+
env:
24+
global:
25+
- SUT_BUILD_ID=$TRAVIS_JOB_NUMBER
26+
- EPANET_HOME=`pwd`
27+
- BUILD_HOME=buildprod
28+
- TEST_HOME=nrtestsuite
29+
30+
before_install:
31+
# - sudo apt-get -qq update
32+
- eval "${MATRIX_EVAL}"
33+
34+
#install:
35+
# - sudo apt-get install -y libboost-test-dev
36+
# - sudo apt-get install -y libboost-thread-dev
237

338
before_script:
4-
- cd build/CMake
5-
- mkdir buildproducts
6-
- cd buildproducts
7-
- cmake ..
39+
- mkdir -p $BUILD_HOME
40+
- cd $BUILD_HOME
41+
- cmake -DCMAKE_C_COMPILER=${CC}
42+
-DCMAKE_CXX_COMPILER=${CXX}
43+
-DBUILD_TESTS=ON
44+
-DBUILD_COVERAGE=ON ..
845

946
script:
10-
- make
11-
- cd ../../../tests
12-
- ./test_networks.sh
47+
- cmake --build .
48+
# run unit tests
49+
- cd tests
50+
- ctest --output-on-failure
51+
# run regression tests
52+
- cd $EPANET_HOME
53+
- pip install -r tools/requirements.txt
54+
- tools/before-test.sh $PLATFORM $REF_BUILD_ID $SUT_BUILD_ID $TRAVIS_COMMIT
55+
- tools/run-nrtest.sh -c -s $SUT_BUILD_ID
56+
57+
after_success:
58+
- bash <(curl -s https://codecov.io/bash)

AUTHORS

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Authors ordered by first contribution.
2-
# Generated by tools/update-authors.sh
32

4-
Lew Rossman <[email protected]>
3+
Authors with Contributions in the Public Domain:
4+
5+
Lewis Rossman <[email protected]>
56
Michael Tryby <[email protected]>
7+
8+
Authors with Contributions Subject to Copyright (see LICENSE):
9+
610
Sam Hatchett <[email protected]>
711
Feng Shang <fshang>
812
James Uber <[email protected]>
@@ -14,7 +18,10 @@ Mike Kane <[email protected]>
1418
Demetrios Eliades <[email protected]>
1519
Will Furnass <[email protected]>
1620
Steffen Macke <[email protected]>
17-
Mariosmsk <[email protected]>
21+
Marios Kyriakou <[email protected]>
1822
Elad Salomons <[email protected]>
1923
Maurizio Cingi <[email protected]>
2024
Bryant McDonnell <[email protected]>
25+
Angela Marchi <[email protected]>
26+
Markus Sunela <[email protected]>
27+
Milad Ghiami <[email protected]>

BUILDING.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
The most straightforward way to build the EPANET files is by using `CMake` ([https://cmake.org/](https://cmake.org/)). `CMake` is a cross-platform build tool that generates platform native build systems that can be used with your compiler of choice. It uses a generator concept to represent different build tooling. `CMake` automatically detects the platform it is running on and generates the appropriate makefiles for the platform default compiler. Different generators can also be specified.
2+
3+
The project's `CMake` file (`CMakeLists.txt`) is located in its root directory and supports builds for Linux, Mac OS and Windows. To build the EPANET library and its command line executable using `CMake`, first open a console window and navigate to the project's root directory. Then enter the following commands:
4+
```
5+
mkdir build
6+
cd build
7+
cmake ..
8+
cmake --build . --config Release
9+
```
10+
11+
Note: under Windows, the third command should be `cmake .. -A Win32` for a 32-bit build or `cmake .. -A x64` for a 64-bit build when Microsoft Visual Studio is the default compiler.
12+
13+
For Windows the resulting EPANET toolkit library `epanet2.dll` and its command line executable `runepanet.exe` are placed in the `build\bin\Release` directory. The `build\lib\Release` directory will contain an `epanet2.lib` file which is needed to build C/C++ applications using the Windows version of the library. For Linux and Mac OS the EPANET toolkit shared library `libepanet2.so` appears in the `build/lib` directory and the command line executable `runepanet` is in the `build/bin` directory.
14+
15+
In addition, two Windows one-click-build scripts are included in the `win_build` directory:
16+
1. `Makefile2.bat`: this script uses the `CMake` file and requires the build tools for Visual Studio available from [https://visualstudio.microsoft.com/downloads/](https://visualstudio.microsoft.com/downloads/). The Community version will work just fine. This script was tested with Visual Studio 2017 and 2019.
17+
2. `Makefile.bat`: this is the legacy build script compatible with Visual Studio 2010 which conforms with the C89 Standard which was the standard EPANET supported from earlier versions. This script requires the installation of Microsoft Windows SDK 7.1 ([https://www.microsoft.com/en-us/download/details.aspx?id=8279](https://www.microsoft.com/en-us/download/details.aspx?id=8279)) and will probably not run correctly on later versions of the SDK. `CMake` is not used in this script.
18+
19+
These two scripts build EPANET binaries for both the 32 and 64 bit Windows platforms, placing them in the `win_build\32bit` and `win_build\64bit` directories, respectively.

CMakeLists.txt

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# CMakeLists.txt - CMake configuration file for EPANET 2.0
2+
#
3+
# CMake is a cross-platform build tool. CMake generates platform native
4+
# build systems that can be used with your compiler of choice. CMake uses a
5+
# generator concept to represent different build tooling. CMake automatically
6+
# detects the platform it is running on and generates the appropriate makefiles
7+
# for the platform default compiler. Different generators can also be specified.
8+
#
9+
# Note: CMake requires that your platform build system and compiler are
10+
# properly installed. Build using Visual Studio requires msbuild shell.
11+
#
12+
# Build Options:
13+
# BUILD_TESTS = ON/OFF
14+
# BUILD_PY_LIB = ON/OFF
15+
#
16+
# Generic Invocation:
17+
# cmake -E make_directory buildprod
18+
# cd build
19+
# cmake -G GENERATOR -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=ON ..
20+
# cmake --build . --target SOME_TARGET --config Release
21+
#
22+
# More information:
23+
# cmake --help
24+
#
25+
# CMake is available at https://cmake.org/download/
26+
#
27+
28+
cmake_minimum_required (VERSION 2.8.8)
29+
30+
project(EPANET)
31+
32+
# Append local dir to module search path
33+
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
34+
35+
option(BUILD_TESTS "Build tests (requires Boost)" OFF)
36+
option(BUILD_PY_LIB "Build library for Python wrapper" OFF)
37+
option(BUILD_COVERAGE "Build library for coverage" OFF)
38+
39+
40+
IF (NOT BUILD_PY_LIB)
41+
add_subdirectory(run)
42+
ENDIF (NOT BUILD_PY_LIB)
43+
add_subdirectory(src/outfile)
44+
45+
IF (BUILD_TESTS)
46+
#Prep ourselves for compiling with boost
47+
IF(WIN32)
48+
set(Boost_USE_STATIC_LIBS ON)
49+
ELSE(TRUE)
50+
set(Boost_USE_STATIC_LIBS OFF)
51+
add_definitions(-DBOOST_ALL_DYN_LINK)
52+
ENDIF(WIN32)
53+
54+
find_package(Boost COMPONENTS unit_test_framework system thread filesystem)
55+
include_directories (${Boost_INCLUDE_DIRS})
56+
57+
enable_testing()
58+
add_subdirectory(tests)
59+
add_subdirectory(tests/outfile)
60+
add_subdirectory(tests/util)
61+
ENDIF (BUILD_TESTS)
62+
63+
64+
# Sets the output directory for executables and libraries.
65+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
66+
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
67+
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
68+
69+
70+
# Sets the position independent code property for all targets
71+
SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
72+
73+
74+
IF (APPLE)
75+
set(INSTALL_NAME_DIR @executable_path/../lib)
76+
set(CMAKE_MACOSX_RPATH 1)
77+
ENDIF (APPLE)
78+
79+
IF (MSVC)
80+
set(CMAKE_C_FLAGS_RELEASE "/GL")
81+
add_definitions(-D_CRT_SECURE_NO_DEPRECATE -MT)
82+
ENDIF (MSVC)
83+
84+
# configure file groups
85+
file(GLOB EPANET_SOURCES RELATIVE ${PROJECT_SOURCE_DIR} src/*.c src/util/*.c)
86+
file(GLOB EPANET_LIB_ALL RELATIVE ${PROJECT_SOURCE_DIR} src/* src/util/*)
87+
# exclude epanet python API from the default build
88+
list(REMOVE_ITEM EPANET_LIB_ALL "src/epanet_py.c")
89+
source_group("Library" FILES ${EPANET_LIB_ALL})
90+
91+
# the shared library
92+
IF(MSVC AND "${CMAKE_VS_PLATFORM_NAME}" MATCHES "(Win32)")
93+
message(" ************************************")
94+
message(" Configuring with epanet2.def mapping")
95+
message(" ************************************")
96+
add_library(epanet2 SHARED ${EPANET_LIB_ALL} ${PROJECT_SOURCE_DIR}/include/epanet2.def)
97+
set_source_files_properties(${PROJECT_SOURCE_DIR}/include/epanet2.def PROPERTIES_HEADER_FILE_ONLY TRUE)
98+
ELSE(TRUE)
99+
add_library(epanet2 SHARED ${EPANET_LIB_ALL})
100+
ENDIF(MSVC AND "${CMAKE_VS_PLATFORM_NAME}" MATCHES "(Win32)")
101+
102+
target_include_directories(epanet2 PUBLIC ${PROJECT_SOURCE_DIR}/include)

CODE_OF_CONDUCT.md

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting any member of the [project team](https://github.com/OpenWaterAnalytics/EPANET/wiki/Project-Team). All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 Open Water Analytics
3+
Copyright (c) 2017 (see AUTHORS)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)