Skip to content

Commit 4d6b652

Browse files
committed
Removing ADIOS2 deprecated debug mode flag
ADIOS2 2.9 has completely removed the debug mode flag parameter from the macro adios2_init() in the C API (deprecated/ignored in 2.8): [2.8] #define adios2_init(comm, debug_mode) adios2_init_mpi(comm) [2.9] #define adios2_init(comm) adios2_init_mpi(comm) Also, 'DebugON' is no longer a member of 'adios2' in 2.9. Any usage of adios2::DebugON will cause build errors. This fix is required for SCORPIO to build with ADIOS2 2.9 or higher versions (it still supports ADIOS2 2.8).
1 parent 5b74f0f commit 4d6b652

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/clib/pioc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ int PIOc_Init_Intracomm(MPI_Comm comp_comm, int num_iotasks, int stride, int bas
13051305

13061306
if (ios->adios_io_process == 1)
13071307
{
1308-
ios->adiosH = adios2_init(ios->adios_comm, adios2_debug_mode_on);
1308+
ios->adiosH = adios2_init_mpi(ios->adios_comm);
13091309
if (ios->adiosH == NULL)
13101310
{
13111311
GPTLstop("PIO:PIOc_Init_Intracomm");

tools/adios2pio-nm/adios2pio-nm-lib.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2144,7 +2144,7 @@ int ConvertBPFile(const string &infilepath, const string &outfilename,
21442144
nproc = w_nproc;
21452145

21462146
// Initialization of the class factory
2147-
adios2::ADIOS adios(w_comm, adios2::DebugON);
2147+
adios2::ADIOS adios(w_comm);
21482148

21492149
double time_init = 0;
21502150
double time_init_max = -1;
@@ -2230,7 +2230,7 @@ int ConvertBPFile(const string &infilepath, const string &outfilename,
22302230
adios.RemoveIO(bpIO[0].Name());
22312231
bpReader[1].Close();
22322232
adios.RemoveIO(bpIO[1].Name());
2233-
adios2::ADIOS adios_new(comm, adios2::DebugON);
2233+
adios2::ADIOS adios_new(comm);
22342234
ierr = OpenAdiosFile(adios_new, bpIO, bpReader, file0, err_msg);
22352235

22362236
if (io_proc == 0)

0 commit comments

Comments
 (0)