File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1817,11 +1817,7 @@ void ADIOS2IOHandlerImpl::deregister(
18171817void ADIOS2IOHandlerImpl::touch (
18181818 Writable *writable, Parameter<Operation::TOUCH> const &)
18191819{
1820- if (!writable->fileState || !writable->fileState ->has_value ())
1821- {
1822- throw error::Internal (
1823- " ADIOS2 backend: Tried accessing a file that is not open." );
1824- }
1820+ refreshFileFromParent (writable, false );
18251821 if (access::write (m_handler->m_backendAccess ))
18261822 {
18271823 this ->m_dirty .emplace (writable->fileState );
Original file line number Diff line number Diff line change @@ -1730,11 +1730,7 @@ void JSONIOHandlerImpl::deregister(
17301730void JSONIOHandlerImpl::touch (
17311731 Writable *writable, Parameter<Operation::TOUCH> const &)
17321732{
1733- if (!writable->fileState || !writable->fileState ->has_value ())
1734- {
1735- throw error::Internal (
1736- " JSON/TOML backend: Tried accessing a file that is not open." );
1737- }
1733+ refreshFileFromParent (writable, false );
17381734 if (access::write (m_handler->m_backendAccess ))
17391735 {
17401736 this ->m_dirty .emplace (writable->fileState );
You can’t perform that action at this time.
0 commit comments