From 8ee5ae8ccc4fb11c4a89720ea4a2790a708173a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Fri, 22 Sep 2023 17:55:53 +0200 Subject: [PATCH] Bug fix: don't double prepend base dir --- src/IO/JSON/JSONIOHandlerImpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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());