Skip to content

Commit 80ccff0

Browse files
committed
Add Windows CI workaround
1 parent b46c770 commit 80ccff0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/IO/ADIOS/ADIOS2IOHandler.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2206,11 +2206,14 @@ namespace detail
22062206
: m_file(impl.fullPath(std::move(file)))
22072207
, m_IOName(std::to_string(impl.nameCounter++))
22082208
, m_ADIOS(impl.m_ADIOS)
2209-
, m_IO(impl.m_ADIOS.DeclareIO(m_IOName))
2210-
, m_mode(impl.adios2AccessMode(m_file))
22112209
, m_impl(&impl)
22122210
, m_engineType(impl.m_engineType)
22132211
{
2212+
// Declaring these members in the constructor body to avoid
2213+
// initialization order hazards. Need the IO_ prefix since in some
2214+
// situation there seems to be trouble with number-only IO names
2215+
m_IO = impl.m_ADIOS.DeclareIO("IO_" + m_IOName);
2216+
m_mode = impl.adios2AccessMode(m_file);
22142217
if (!m_IO)
22152218
{
22162219
throw std::runtime_error(

0 commit comments

Comments
 (0)