diff --git a/src/solver/toolkit.c b/src/solver/toolkit.c index eb9fab49f..3bac99911 100644 --- a/src/solver/toolkit.c +++ b/src/solver/toolkit.c @@ -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) @@ -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: diff --git a/tests/solver/test_toolkit_hotstart.cpp b/tests/solver/test_toolkit_hotstart.cpp index 7b0ab0aac..617c17269 100644 --- a/tests/solver/test_toolkit_hotstart.cpp +++ b/tests/solver/test_toolkit_hotstart.cpp @@ -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",