Merge pull request #3656 from pnorbert/fix-deprecated-adios-init

Fix the adios2::ADIOS constructor calls that were deprecated in adios…
This commit is contained in:
Axel Kohlmeyer
2023-02-22 15:32:05 -05:00
committed by GitHub
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());