Skip to content

Commit

Permalink
Run test for ADIOS2 only
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Dec 22, 2020
1 parent f617523 commit e02be50
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/SerialIOTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3119,6 +3119,7 @@ TEST_CASE( "serial_iterator", "[serial][adios2]" )
}
}

#if openPMD_HAVE_ADIOS2
void
stepBasedSeries( std::string const & file )
{
Expand All @@ -3136,6 +3137,10 @@ stepBasedSeries( std::string const & file )
constexpr Extent::value_type extent = 1000;
{
Series writeSeries( file, Access::CREATE, config );
if( writeSeries.backend() == "ADIOS1" )
{
return;
}
writeSeries.setIterationEncoding( IterationEncoding::stepBased );
auto iterations = writeSeries.writeIterations();
for( size_t i = 0; i < 10; ++i )
Expand Down Expand Up @@ -3173,6 +3178,7 @@ TEST_CASE( "stepBasedSeries", "[serial][adios2]" )
{
stepBasedSeries( "../samples/stepBasedSeries.bp" );
}
#endif

void
iterate_nonstreaming_series( std::string const & file )
Expand Down

0 comments on commit e02be50

Please sign in to comment.