From a297a0b85b695be329a8dc7974b5026d9537fce5 Mon Sep 17 00:00:00 2001 From: Daniel Garcia-Sanchez Date: Sun, 26 Aug 2018 16:43:16 +0200 Subject: [PATCH] Write serial tests for the HDF5 datasets --- tests/base/hdf5_01.cc | 2 +- tests/base/hdf5_02.cc | 2 +- tests/base/hdf5_03.cc | 2 +- tests/base/hdf5_04.cc | 841 ++++++++++++++++++++++++++++++++++++++ tests/base/hdf5_04.output | 544 ++++++++++++++++++++++++ 5 files changed, 1388 insertions(+), 3 deletions(-) create mode 100644 tests/base/hdf5_04.cc create mode 100644 tests/base/hdf5_04.output diff --git a/tests/base/hdf5_01.cc b/tests/base/hdf5_01.cc index d093b1b964..27c480789a 100644 --- a/tests/base/hdf5_01.cc +++ b/tests/base/hdf5_01.cc @@ -13,7 +13,7 @@ // // --------------------------------------------------------------------- -// Test the attributes of serial HDF5 +// Attributes tests with serial HDF5 #include diff --git a/tests/base/hdf5_02.cc b/tests/base/hdf5_02.cc index 4054403785..ac497bb355 100644 --- a/tests/base/hdf5_02.cc +++ b/tests/base/hdf5_02.cc @@ -13,7 +13,7 @@ // // --------------------------------------------------------------------- -// Test the attributes of parallel HDF5 +// Attributes tests with parallel HDF5 #include diff --git a/tests/base/hdf5_03.cc b/tests/base/hdf5_03.cc index 80151073b9..8d7cce440e 100644 --- a/tests/base/hdf5_03.cc +++ b/tests/base/hdf5_03.cc @@ -13,7 +13,7 @@ // // --------------------------------------------------------------------- -// Test read/write with parallel HDF5 +// Read/write tests with parallel HDF5 #include #include diff --git a/tests/base/hdf5_04.cc b/tests/base/hdf5_04.cc new file mode 100644 index 0000000000..f2ee24c6b2 --- /dev/null +++ b/tests/base/hdf5_04.cc @@ -0,0 +1,841 @@ +// --------------------------------------------------------------------- +// +// Copyright (C) 2015 - 2018 by the deal.II Authors +// +// This file is part of the deal.II library. +// +// The deal.II library is free software; you can use it, redistribute +// it, and/or modify it under the terms of the GNU Lesser General +// Public License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// The full text of the license can be found in the file LICENSE at +// the top level of the deal.II distribution. +// +// --------------------------------------------------------------------- + +// Read/write tests with serial HDF5 + +#include + +#include +#include + +#include + +#include + +#include "../tests.h" + +// This function initializes a container of Number type +template