Skip to content

Commit

Permalink
Merge pull request #652 from kwitaechong/hdf5_fix
Browse files Browse the repository at this point in the history
fixup: HDF5 test
  • Loading branch information
streeve authored Jul 26, 2023
2 parents 7405e82 + b8e6515 commit 438779a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/unit_test/tstHDF5ParticleOutput.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@
namespace Test
{

template <class SliceType>
void checkScalar( SliceType write, SliceType read )
template <class SliceType1, class SliceType2>
void checkScalar( SliceType1 write, SliceType2 read )
{
for ( std::size_t p = 0; p < write.size(); ++p )
{
EXPECT_EQ( write( p ), read( p ) );
}
}

template <class SliceType>
void checkVector( SliceType write, SliceType read )
template <class SliceType1, class SliceType2>
void checkVector( SliceType1 write, SliceType2 read )
{
for ( std::size_t p = 0; p < write.size(); ++p )
{
Expand All @@ -57,8 +57,8 @@ void checkVector( SliceType write, SliceType read )
}
}

template <class SliceType>
void checkMatrix( SliceType write, SliceType read )
template <class SliceType1, class SliceType2>
void checkMatrix( SliceType1 write, SliceType2 read )
{
for ( std::size_t p = 0; p < write.size(); ++p )
{
Expand Down

0 comments on commit 438779a

Please sign in to comment.