Skip to content

Commit

Permalink
unit tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
wrtobin committed Mar 6, 2024
1 parent da69f82 commit f71d2ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/coreComponents/fileIO/Outputs/TimeHistoryOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ TimeHistoryOutput::TimeHistoryOutput( string const & name,
setInputFlag( InputFlags::OPTIONAL ).
setDescription( "Whether to use MPIO to write a single file or a separate file for each rank (only applicable to HDF5 format)." );

}`
}

void TimeHistoryOutput::initCollectorParallel( DomainPartition const & domain, HistoryCollection & collector )
{
Expand Down
7 changes: 6 additions & 1 deletion src/coreComponents/unitTests/fileIOTests/testHDFFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ TEST_P( HDFFileIOTest, HDFFile )
{
GEOS_MARK_FUNCTION;
bool useMPIO = GetParam();
HDFFile file( "empty", true, useMPIO, MPI_COMM_GEOSX );
{
HDFFile file( "empty", true, useMPIO, MPI_COMM_GEOSX );
}
hid_t file_id = 0;
if( useMPIO )
{
Expand Down Expand Up @@ -43,6 +45,7 @@ TEST_P( HDFFileIOTest, SingleValueHistory )
memcpy( buffer, &time, sizeof(real64));
}
io.write( );
io.compressInFile();
}

TEST_P( HDFFileIOTest, ArrayHistory )
Expand Down Expand Up @@ -91,6 +94,7 @@ TEST_P( HDFFileIOTest, ArrayHistory )
waitAllDeviceEvents( packEvents );

io.write( );
io.compressInFile();

//read and check the data using hdf api
// remove( filename.c_str() );
Expand Down Expand Up @@ -124,6 +128,7 @@ TEST_P( HDFFileIOTest, IdxArrayHistory )
waitAllDeviceEvents( packEvents );

io.write( );
io.compressInFile();
}
}

Expand Down

0 comments on commit f71d2ba

Please sign in to comment.