Skip to content

Commit

Permalink
Changed rpt flow fmt so that large values are not concatenated #109
Browse files Browse the repository at this point in the history
  • Loading branch information
cbuahin committed Aug 9, 2023
1 parent f0062f5 commit 32c46eb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ endif()


project(swmm-solver
VERSION 5.2.3
VERSION 5.2.4
LANGUAGES C CXX
)

Expand Down
3 changes: 2 additions & 1 deletion src/solver/hotstart.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
// Build 5.1.015:
// - Support added for multiple infiltration methods within a project.
// Build 5.2.5:
// - Fixed bug in fwrite count argument when writing of pollutant build-up.
// - Fixed bug in fwrite count argument when writing catchment landuse pollutant
// build-up.
//-----------------------------------------------------------------------------
#define _CRT_SECURE_NO_DEPRECATE

Expand Down
4 changes: 2 additions & 2 deletions src/solver/statsrpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ void statsrpt_writeReport()
//
{
// --- set number of decimal places for reporting flow values
if ( FlowUnits == MGD || FlowUnits == CMS ) sstrncpy(FlowFmt, "%9.3f", 5);
else sstrncpy(FlowFmt, "%9.2f", 5);
if ( FlowUnits == MGD || FlowUnits == CMS ) sstrncpy(FlowFmt, "%9.3g", 5);
else sstrncpy(FlowFmt, "%9.2g", 5);

// --- conversion factor from cu. ft. to mil. gallons or megaliters
if (UnitSystem == US) Vcf = 7.48 / 1.0e6;
Expand Down
3 changes: 3 additions & 0 deletions src/solver/swmm5.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
// - Prevented possible infinite loop if swmm_step() called when ErrorCode > 0.
// - Prevented early exit from swmm_end() when ErrorCode > 0.
// - Support added for relative file names.
// Build 5.2.5
// - Changed flow format to scientic to prevent the merging of extremely
// large flows that make it difficult to interpret results.
//-----------------------------------------------------------------------------
#define _CRT_SECURE_NO_DEPRECATE

Expand Down

0 comments on commit 32c46eb

Please sign in to comment.