Skip to content

Commit

Permalink
Addressing Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bemcdonnell committed Jul 12, 2023
1 parent 53bcb8f commit 836ee80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/solver/toolkit.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ EXPORT_TOOLKIT int swmm_getSimulationParam(SM_SimSetting type, double *value)
return error_code;
}

EXPORT_TOOLKIT int DLLEXPORT swmm_hotstart(SM_HotStart type, const char *hsfile)
EXPORT_TOOLKIT int swmm_hotstart(SM_HotStart type, const char *hsfile)
///
/// Input: type = Hotstart option USE/SAVE (SM_HotStart)
/// hotstart = file ID name (able to overwrite)
Expand Down Expand Up @@ -445,7 +445,7 @@ EXPORT_TOOLKIT int DLLEXPORT swmm_hotstart(SM_HotStart type, const char *hsfile)
char fl_name[MAXFNAME];
sstrncpy(fl_name, hsfile, MAXFNAME);
Fhotstart1.mode = USE_FILE;
sstrncpy(Fhotstart1.name, addAbsolutePath(fl_name), MAXFNAME);
sstrncpy(Fhotstart1.name, fl_name, MAXFNAME);
break;
}
case SM_HOTSTART_SAVE:
Expand Down
2 changes: 1 addition & 1 deletion tests/solver/test_toolkit_hotstart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ BOOST_AUTO_TEST_CASE(use_hotstart_file){
int number_of_nodes;
double elapsedTime = 0.0;
double set_val;
char fkid[] = "use_hot_start_test.hsf";
char fkid[] = "hotstart/use_hot_start_test.hsf";

swmm_open((char *)"hotstart/Simulation1_use_hot_start.inp",
(char *)"hotstart/Simulation1_use_hot_start.rpt",
Expand Down

0 comments on commit 836ee80

Please sign in to comment.