Commit ca21d00e authored by pkda001's avatar pkda001

Fixed bug with not passing configuration file.

parent 31991328
......@@ -51,10 +51,8 @@
using namespace libconfig;
int main(int argc, char * argv[]){
string f_path = argv[1];
const char* filepath = f_path.c_str();
if(argc < 2)
if(argc < 2)
{
cout << "Error: must provide a configuration file\n";
cout << "Usage: ./clasim configfile\n";
......@@ -65,7 +63,9 @@ int main(int argc, char * argv[]){
vector<string> patients_list;
auto cf = std::make_shared<Config>();
float sim_time_secs, sim_time_mins;
string f_path = argv[1];
const char* filepath = f_path.c_str();
try
{
cf->readFile(filepath);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment