Skip to content

Commit edc400a

Browse files
committed
Need to set open
1 parent 8ae4318 commit edc400a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/adios2/toolkit/transport/file/FileRemote.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@ void FileRemote::SetParameters(const Params &params)
7474
void FileRemote::WaitForOpen()
7575
{
7676
if (!m_IsOpen)
77+
{
7778
helper::Throw<std::invalid_argument>("Toolkit", "transport::file::FileRemote",
7879
"WaitForOpen", "Remote file is not open");
80+
}
7981
}
8082

8183
void FileRemote::SetUpCache()
@@ -121,6 +123,7 @@ void FileRemote::Open(const std::string &name, const Mode openMode, const bool a
121123
int localPort = m_Remote->LaunchRemoteServerViaConnectionManager(m_Hostname);
122124
m_Remote->OpenSimpleFile("localhost", localPort, m_Name);
123125
ProfilerStop("open");
126+
m_IsOpen = true;
124127
m_Size = m_Remote->m_Size;
125128
break;
126129
}

0 commit comments

Comments
 (0)