Skip to content

Commit 0b2a74c

Browse files
committed
Remove name parameter from CLOSE_FILE task
1 parent 346bc75 commit 0b2a74c

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

include/openPMD/IO/IOTask.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,14 @@ template<>
132132
struct OPENPMDAPI_EXPORT Parameter< Operation::CLOSE_FILE > : public AbstractParameter
133133
{
134134
Parameter() = default;
135-
Parameter( Parameter const & p ) : AbstractParameter(), name( p.name ){}
135+
Parameter( Parameter const & ) : AbstractParameter() {}
136136

137137
std::unique_ptr< AbstractParameter >
138138
clone() const override
139139
{
140140
return std::unique_ptr< AbstractParameter >(
141141
new Parameter< Operation::CLOSE_FILE >( *this ) );
142142
}
143-
144-
std::string name = "";
145143
};
146144

147145
template<>

src/IO/ADIOS/ADIOS2IOHandler.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -327,13 +327,8 @@ void ADIOS2IOHandlerImpl::openFile(
327327
void
328328
ADIOS2IOHandlerImpl::closeFile(
329329
Writable * writable,
330-
Parameter< Operation::CLOSE_FILE > const & parameters )
330+
Parameter< Operation::CLOSE_FILE > const & )
331331
{
332-
std::string name = parameters.name;
333-
if ( !auxiliary::ends_with( name, ".bp" ) )
334-
{
335-
name += ".bp";
336-
}
337332
auto fileIterator = m_files.find( writable );
338333
if ( fileIterator != m_files.end( ) )
339334
{

src/Series.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,6 @@ Series::flushFileBased()
587587
if ( i.second.closed( ) )
588588
{
589589
Parameter< Operation::CLOSE_FILE > fClose;
590-
fClose.name = filename;
591590
IOHandler->enqueue( IOTask( &i.second, std::move( fClose ) ) );
592591
*i.second.skipFlush = true;
593592
}

0 commit comments

Comments
 (0)