Skip to content

Commit 48784fd

Browse files
authored
Merge pull request #515 from E3SM-Project/dqwu/fix_adios2_2.9_build_errors
This PR addresses build errors that occur when using ADIOS2 2.9.0 with SCORPIO. Specifically, the deprecated debug mode flag has been removed to enable successful builds with the latest version of ADIOS2. This PR ensures that SCORPIO can still be built with ADIOS2 2.8 as well.
2 parents 5b74f0f + 4d6b652 commit 48784fd

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)