From febaf55afe7598935703858640333715533470e8 Mon Sep 17 00:00:00 2001 From: Norbert Podhorszki Date: Wed, 22 Feb 2023 07:28:00 -0500 Subject: [PATCH] Fix the adios2::ADIOS constructor calls that were deprecated in adios 2.8 and removed in 2.9. The fix is backward compatible with older adios2 versions as well. --- src/ADIOS/dump_atom_adios.cpp | 4 ++-- src/ADIOS/dump_custom_adios.cpp | 4 ++-- src/ADIOS/reader_adios.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ADIOS/dump_atom_adios.cpp b/src/ADIOS/dump_atom_adios.cpp index a807480758..7754fdf04e 100644 --- a/src/ADIOS/dump_atom_adios.cpp +++ b/src/ADIOS/dump_atom_adios.cpp @@ -63,9 +63,9 @@ DumpAtomADIOS::DumpAtomADIOS(LAMMPS *lmp, int narg, char **arg) : DumpAtom(lmp, internal = new DumpAtomADIOSInternal(); try { #if defined(MPI_STUBS) - internal->ad = new adios2::ADIOS("adios2_config.xml", adios2::DebugON); + internal->ad = new adios2::ADIOS("adios2_config.xml"); #else - internal->ad = new adios2::ADIOS("adios2_config.xml", world, adios2::DebugON); + internal->ad = new adios2::ADIOS("adios2_config.xml", world); #endif } catch (std::ios_base::failure &e) { error->all(FLERR, "ADIOS initialization failed with error: {}", e.what()); diff --git a/src/ADIOS/dump_custom_adios.cpp b/src/ADIOS/dump_custom_adios.cpp index f90cc9640e..61abc9e6a7 100644 --- a/src/ADIOS/dump_custom_adios.cpp +++ b/src/ADIOS/dump_custom_adios.cpp @@ -71,9 +71,9 @@ DumpCustomADIOS::DumpCustomADIOS(LAMMPS *lmp, int narg, char **arg) : DumpCustom internal = new DumpCustomADIOSInternal(); try { #if defined(MPI_STUBS) - internal->ad = new adios2::ADIOS("adios2_config.xml", adios2::DebugON); + internal->ad = new adios2::ADIOS("adios2_config.xml"); #else - internal->ad = new adios2::ADIOS("adios2_config.xml", world, adios2::DebugON); + internal->ad = new adios2::ADIOS("adios2_config.xml", world); #endif } catch (std::ios_base::failure &e) { error->all(FLERR, "ADIOS initialization failed with error: {}", e.what()); diff --git a/src/ADIOS/reader_adios.cpp b/src/ADIOS/reader_adios.cpp index 655df98d26..362192479e 100644 --- a/src/ADIOS/reader_adios.cpp +++ b/src/ADIOS/reader_adios.cpp @@ -83,9 +83,9 @@ ReaderADIOS::ReaderADIOS(LAMMPS *lmp) : Reader(lmp) internal = new ReadADIOSInternal(); try { #if defined(MPI_STUBS) - internal->ad = new adios2::ADIOS("adios2_config.xml", adios2::DebugON); + internal->ad = new adios2::ADIOS("adios2_config.xml"); #else - internal->ad = new adios2::ADIOS("adios2_config.xml", world, adios2::DebugON); + internal->ad = new adios2::ADIOS("adios2_config.xml", world); #endif } catch (std::ios_base::failure &e) { error->one(FLERR, "ADIOS initialization failed with error: {}", e.what());