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 Oct 11, 2023
1 parent 3cee937 commit 09a70bc
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 @@ -2069,7 +2069,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 09a70bc

Please sign in to comment.