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.

This commit is contained in:
Norbert Podhorszki
2023-02-22 07:28:00 -05:00
committed by Axel Kohlmeyer
parent ae3f57e89a
commit 5a5a86684a
3 changed files with 6 additions and 6 deletions

View File

@ -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());

View File

@ -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());

View File

@ -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());