Skip to content

Commit

Permalink
Bug fix: don't double prepend base dir
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Nov 24, 2023
1 parent 887d7fa commit 0acab59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/IO/JSON/JSONIOHandlerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,8 @@ auto JSONIOHandlerImpl::putJsonContents(
MPI_Comm_rank(comm, &rank);
MPI_Comm_size(comm, &size);
std::stringstream subfilePath;
subfilePath << dirpath << "/mpi_rank_"
// writeSingleFile will prepend the base dir
subfilePath << *filename << ".parallel/mpi_rank_"
<< std::setw(num_digits(size - 1)) << std::setfill('0')
<< rank << ".json";
writeSingleFile(subfilePath.str());
Expand Down

0 comments on commit 0acab59

Please sign in to comment.