Commit ac50cbd3 authored by Dave Partyka's avatar Dave Partyka
Browse files

BUG: Commit patch from John Bidiscombe to correct test failures on ParaView linux dashboards.

parent 615fe147
......@@ -90,20 +90,29 @@ public:
XdmfConstString name,
XdmfConstString access )
{
// If HDF5 is compiled with Parallel IO, we must use collective open
#ifndef H5_HAVE_PARALLEL
if ( mCommRank == 0 ) {
return ds->DoOpen( name, access );
} else {
return XDMF_SUCCESS;
}
#else
return ds->DoOpen( name, access );
#endif
}
XdmfInt32 DoClose( XdmfHeavyData* ds )
{
#ifndef H5_HAVE_PARALLEL
if ( mCommRank == 0 ) {
return ds->DoClose();
} else {
return XDMF_SUCCESS;
}
#else
return ds->DoClose();
#endif
}
XdmfInt32 DoWrite( XdmfHeavyData* ds, XdmfArray* array )
......@@ -230,14 +239,14 @@ int main( int argc, char* argv[] ) {
}
}
MPI_Finalize();
delete H5;
delete cb;
delete MyData;
delete H5In;
delete result;
MPI_Finalize();
if ( failure ) {
return -1;
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment