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:
committed by
Axel Kohlmeyer
parent
ae3f57e89a
commit
5a5a86684a
@ -63,9 +63,9 @@ DumpAtomADIOS::DumpAtomADIOS(LAMMPS *lmp, int narg, char **arg) : DumpAtom(lmp,
|
|||||||
internal = new DumpAtomADIOSInternal();
|
internal = new DumpAtomADIOSInternal();
|
||||||
try {
|
try {
|
||||||
#if defined(MPI_STUBS)
|
#if defined(MPI_STUBS)
|
||||||
internal->ad = new adios2::ADIOS("adios2_config.xml", adios2::DebugON);
|
internal->ad = new adios2::ADIOS("adios2_config.xml");
|
||||||
#else
|
#else
|
||||||
internal->ad = new adios2::ADIOS("adios2_config.xml", world, adios2::DebugON);
|
internal->ad = new adios2::ADIOS("adios2_config.xml", world);
|
||||||
#endif
|
#endif
|
||||||
} catch (std::ios_base::failure &e) {
|
} catch (std::ios_base::failure &e) {
|
||||||
error->all(FLERR, "ADIOS initialization failed with error: {}", e.what());
|
error->all(FLERR, "ADIOS initialization failed with error: {}", e.what());
|
||||||
|
|||||||
@ -71,9 +71,9 @@ DumpCustomADIOS::DumpCustomADIOS(LAMMPS *lmp, int narg, char **arg) : DumpCustom
|
|||||||
internal = new DumpCustomADIOSInternal();
|
internal = new DumpCustomADIOSInternal();
|
||||||
try {
|
try {
|
||||||
#if defined(MPI_STUBS)
|
#if defined(MPI_STUBS)
|
||||||
internal->ad = new adios2::ADIOS("adios2_config.xml", adios2::DebugON);
|
internal->ad = new adios2::ADIOS("adios2_config.xml");
|
||||||
#else
|
#else
|
||||||
internal->ad = new adios2::ADIOS("adios2_config.xml", world, adios2::DebugON);
|
internal->ad = new adios2::ADIOS("adios2_config.xml", world);
|
||||||
#endif
|
#endif
|
||||||
} catch (std::ios_base::failure &e) {
|
} catch (std::ios_base::failure &e) {
|
||||||
error->all(FLERR, "ADIOS initialization failed with error: {}", e.what());
|
error->all(FLERR, "ADIOS initialization failed with error: {}", e.what());
|
||||||
|
|||||||
@ -83,9 +83,9 @@ ReaderADIOS::ReaderADIOS(LAMMPS *lmp) : Reader(lmp)
|
|||||||
internal = new ReadADIOSInternal();
|
internal = new ReadADIOSInternal();
|
||||||
try {
|
try {
|
||||||
#if defined(MPI_STUBS)
|
#if defined(MPI_STUBS)
|
||||||
internal->ad = new adios2::ADIOS("adios2_config.xml", adios2::DebugON);
|
internal->ad = new adios2::ADIOS("adios2_config.xml");
|
||||||
#else
|
#else
|
||||||
internal->ad = new adios2::ADIOS("adios2_config.xml", world, adios2::DebugON);
|
internal->ad = new adios2::ADIOS("adios2_config.xml", world);
|
||||||
#endif
|
#endif
|
||||||
} catch (std::ios_base::failure &e) {
|
} catch (std::ios_base::failure &e) {
|
||||||
error->one(FLERR, "ADIOS initialization failed with error: {}", e.what());
|
error->one(FLERR, "ADIOS initialization failed with error: {}", e.what());
|
||||||
|
|||||||
Reference in New Issue
Block a user