Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Dec 23, 2020
1 parent f02fedf commit 0c1b5b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/IO/ADIOS/ADIOS2IOHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ void ADIOS2IOHandlerImpl::openPath(
std::string prefix =
filePositionToString( setAndGetFilePosition( writable->parent ) );
std::string suffix = auxiliary::removeSlashes( parameters.path );
std::string infix = suffix.empty() || auxiliary::ends_with( prefix, '/' )
std::string infix = suffix.empty() || auxiliary::ends_with( prefix, '/' )
? ""
: "/";

Expand Down
4 changes: 2 additions & 2 deletions src/Series.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1464,13 +1464,13 @@ WriteIterations::operator[]( key_type && key )
}
}
shared->currentlyOpen = key;
auto & res = shared->iterations[ std::move( key ) ];
auto & res = shared->iterations[ key ];
if( res.getStepStatus() == StepStatus::NoStep )
{
res.beginStep();
res.setStepStatus( StepStatus::DuringStep );
}
shared->iterations.setAttribute( "iterationIndex", key );
shared->iterations.setAttribute( "iterationIndex", std::move( key ) );
return res;
}
} // namespace openPMD

0 comments on commit 0c1b5b8

Please sign in to comment.