diff --git a/src/IO/JSON/JSONIOHandlerImpl.cpp b/src/IO/JSON/JSONIOHandlerImpl.cpp index 0116cf8dd8..7e249d0373 100644 --- a/src/IO/JSON/JSONIOHandlerImpl.cpp +++ b/src/IO/JSON/JSONIOHandlerImpl.cpp @@ -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());