Skip to content

Commit

Permalink
proper paths for the var and oeprator files
Browse files Browse the repository at this point in the history
  • Loading branch information
JaimeCernuda committed Oct 18, 2023
1 parent c58553f commit d7db830
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hermes_engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ void HermesEngine::Init_() {
if (params.find("db_file") != params.end()) {
db_file = params["db_file"];
db = new SQLiteWrapper(db_file);
if(rank % ppn == 0) db->createTables();
if(rank % ppn == 0) {
db->createTables();
std::cout << "DB_FILE: " << db_file << std::endl;
}
client.CreateRoot(DomainId::GetGlobal(), "db_operation", db_file);
} else {
throw std::invalid_argument("db_file not found in parameters");
Expand Down

0 comments on commit d7db830

Please sign in to comment.