From be4aacbb64e9f36bc5df20369b382e6ac85f55fa Mon Sep 17 00:00:00 2001 From: pradsubedi Date: Tue, 15 Oct 2019 13:47:34 -0400 Subject: [PATCH] Removed commented code blocks --- source/adios2/engine/dataspaces/DataSpacesReader.cpp | 9 +-------- source/adios2/engine/dataspaces/DataSpacesWriter.cpp | 7 ------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/source/adios2/engine/dataspaces/DataSpacesReader.cpp b/source/adios2/engine/dataspaces/DataSpacesReader.cpp index 6685f2633d..3c8a814aa1 100644 --- a/source/adios2/engine/dataspaces/DataSpacesReader.cpp +++ b/source/adios2/engine/dataspaces/DataSpacesReader.cpp @@ -233,14 +233,7 @@ void DataSpacesReader::EndStep() void DataSpacesReader::DoClose(const int transportIndex) { - if (globals_adios_is_dataspaces_connected_from_reader() && - !globals_adios_is_dataspaces_connected_from_both()) - { - // fprintf(stderr, "Disconnecting reader via finalize \n"); - // MPI_Barrier(m_data.mpi_comm); - // dspaces_finalize(); - } - globals_adios_set_dataspaces_disconnected_from_writer(); + globals_adios_set_dataspaces_disconnected_from_reader(); } void DataSpacesReader::Flush(const int transportIndex) {} diff --git a/source/adios2/engine/dataspaces/DataSpacesWriter.cpp b/source/adios2/engine/dataspaces/DataSpacesWriter.cpp index 43ea2a2638..e645431da5 100644 --- a/source/adios2/engine/dataspaces/DataSpacesWriter.cpp +++ b/source/adios2/engine/dataspaces/DataSpacesWriter.cpp @@ -90,13 +90,6 @@ void DataSpacesWriter::DoClose(const int transportIndex) dspaces_lock_on_write(meta_lk, &(m_data.mpi_comm)); dspaces_unlock_on_write(meta_lk, &(m_data.mpi_comm)); - if (globals_adios_is_dataspaces_connected_from_writer() && - !globals_adios_is_dataspaces_connected_from_both()) - { - // fprintf(stderr, "Disconnecting writer via finalize \n"); - // MPI_Barrier(m_data.mpi_comm); - // dspaces_finalize(); - } globals_adios_set_dataspaces_disconnected_from_writer(); }