From 03f4862f176e770134ad2f3feb8c049ddab3852f Mon Sep 17 00:00:00 2001 From: Daniel Garcia-Sanchez Date: Mon, 15 Oct 2018 23:09:12 +0200 Subject: [PATCH] HDF5 tests with_complex_values=off --- tests/base/hdf5_01.cc | 12 +- ...h_hdf5=true.with_complex_values=off.output | 6 + tests/base/hdf5_02.cc | 12 +- ...ue.with_complex_values=off.mpirun=1.output | 6 + ...ue.with_complex_values=off.mpirun=4.output | 6 + tests/base/hdf5_03.cc | 22 ++ ...ue.with_complex_values=off.mpirun=1.output | 288 +++++++++++++++ ...ue.with_complex_values=off.mpirun=4.output | 288 +++++++++++++++ tests/base/hdf5_04.cc | 22 ++ ...h_hdf5=true.with_complex_values=off.output | 328 ++++++++++++++++++ 10 files changed, 986 insertions(+), 4 deletions(-) create mode 100644 tests/base/hdf5_01.with_hdf5=true.with_complex_values=off.output create mode 100644 tests/base/hdf5_02.with_hdf5=true.with_complex_values=off.mpirun=1.output create mode 100644 tests/base/hdf5_02.with_hdf5=true.with_complex_values=off.mpirun=4.output create mode 100644 tests/base/hdf5_03.with_hdf5=true.with_complex_values=off.mpirun=1.output create mode 100644 tests/base/hdf5_03.with_hdf5=true.with_complex_values=off.mpirun=4.output create mode 100644 tests/base/hdf5_04.with_hdf5=true.with_complex_values=off.output diff --git a/tests/base/hdf5_01.cc b/tests/base/hdf5_01.cc index c38d277e23..8c231337a1 100644 --- a/tests/base/hdf5_01.cc +++ b/tests/base/hdf5_01.cc @@ -45,13 +45,17 @@ test() root_unsigned_int); // Create attributes attached to a group - auto test_group = data_file.create_group("test_group"); - const std::complex group_complex_float = {2.45681934e5, 45e2}; + auto test_group = data_file.create_group("test_group"); + +#ifdef DEAL_II_WITH_COMPLEX_VALUES + const std::complex group_complex_float = {2.45681934e5, 45e2}; const std::complex group_complex_double = {6.234542e3, 2}; test_group.set_attribute("group_complex_float", group_complex_float); test_group.set_attribute("group_complex_double", group_complex_double); test_group.set_attribute("group_complex_total", group_complex_float * group_complex_double); +#endif + test_group.set_attribute("group_string", std::string("test_string_attribute")); @@ -84,6 +88,8 @@ test() // Read attributes attached to a group auto test_group = data_file.group("test_group"); + +#ifdef DEAL_II_WITH_COMPLEX_VALUES auto group_complex_float = test_group.get_attribute>("group_complex_float"); auto group_complex_double = @@ -94,6 +100,8 @@ test() << test_group.get_attribute>( "group_complex_total") << std::endl; +#endif + deallog << "group_string read:" << test_group.get_attribute("group_string") << std::endl; diff --git a/tests/base/hdf5_01.with_hdf5=true.with_complex_values=off.output b/tests/base/hdf5_01.with_hdf5=true.with_complex_values=off.output new file mode 100644 index 0000000000..520572466e --- /dev/null +++ b/tests/base/hdf5_01.with_hdf5=true.with_complex_values=off.output @@ -0,0 +1,6 @@ + +DEAL::root_total calculated:-3.10361e+08 +DEAL::root_total read:-3.10361e+08 +DEAL::group_string read:test_string_attribute +DEAL::dataset_double read:20.2000 +DEAL::dataset_string read:test_dataset_attribute diff --git a/tests/base/hdf5_02.cc b/tests/base/hdf5_02.cc index abb98a524a..b9620a96cb 100644 --- a/tests/base/hdf5_02.cc +++ b/tests/base/hdf5_02.cc @@ -45,13 +45,17 @@ test() root_unsigned_int); // Create attributes attached to a group - auto test_group = data_file.create_group("test_group"); - const std::complex group_complex_float = {2.45681934e5, 45e2}; + auto test_group = data_file.create_group("test_group"); + +#ifdef DEAL_II_WITH_COMPLEX_VALUES + const std::complex group_complex_float = {2.45681934e5, 45e2}; const std::complex group_complex_double = {6.234542e3, 2}; test_group.set_attribute("group_complex_float", group_complex_float); test_group.set_attribute("group_complex_double", group_complex_double); test_group.set_attribute("group_complex_total", group_complex_float * group_complex_double); +#endif + test_group.set_attribute("group_string", std::string("test_string_attribute")); @@ -84,6 +88,8 @@ test() // Read attributes attached to a group auto test_group = data_file.group("test_group"); + +#ifdef DEAL_II_WITH_COMPLEX_VALUES auto group_complex_float = test_group.get_attribute>("group_complex_float"); auto group_complex_double = @@ -94,6 +100,8 @@ test() << test_group.get_attribute>( "group_complex_total") << std::endl; +#endif + deallog << "group_string read:" << test_group.get_attribute("group_string") << std::endl; diff --git a/tests/base/hdf5_02.with_hdf5=true.with_complex_values=off.mpirun=1.output b/tests/base/hdf5_02.with_hdf5=true.with_complex_values=off.mpirun=1.output new file mode 100644 index 0000000000..520572466e --- /dev/null +++ b/tests/base/hdf5_02.with_hdf5=true.with_complex_values=off.mpirun=1.output @@ -0,0 +1,6 @@ + +DEAL::root_total calculated:-3.10361e+08 +DEAL::root_total read:-3.10361e+08 +DEAL::group_string read:test_string_attribute +DEAL::dataset_double read:20.2000 +DEAL::dataset_string read:test_dataset_attribute diff --git a/tests/base/hdf5_02.with_hdf5=true.with_complex_values=off.mpirun=4.output b/tests/base/hdf5_02.with_hdf5=true.with_complex_values=off.mpirun=4.output new file mode 100644 index 0000000000..520572466e --- /dev/null +++ b/tests/base/hdf5_02.with_hdf5=true.with_complex_values=off.mpirun=4.output @@ -0,0 +1,6 @@ + +DEAL::root_total calculated:-3.10361e+08 +DEAL::root_total read:-3.10361e+08 +DEAL::group_string read:test_string_attribute +DEAL::dataset_double read:20.2000 +DEAL::dataset_string read:test_dataset_attribute diff --git a/tests/base/hdf5_03.cc b/tests/base/hdf5_03.cc index e1ded2df77..0de7770f7f 100644 --- a/tests/base/hdf5_03.cc +++ b/tests/base/hdf5_03.cc @@ -780,6 +780,8 @@ main(int argc, char **argv) dataset_dimensions, mpi_communicator, pcout); + +#ifdef DEAL_II_WITH_COMPLEX_VALUES write_test>(data_file, dataset_dimensions, mpi_communicator, @@ -788,6 +790,8 @@ main(int argc, char **argv) dataset_dimensions, mpi_communicator, pcout); +#endif + write_test(data_file, dataset_dimensions, mpi_communicator, @@ -804,6 +808,8 @@ main(int argc, char **argv) dataset_dimensions, mpi_communicator, pcout); + +#ifdef DEAL_II_WITH_COMPLEX_VALUES write_test>(data_file, dataset_dimensions, mpi_communicator, @@ -812,6 +818,8 @@ main(int argc, char **argv) dataset_dimensions, mpi_communicator, pcout); +#endif + write_test(data_file, dataset_dimensions, mpi_communicator, @@ -820,6 +828,8 @@ main(int argc, char **argv) dataset_dimensions, mpi_communicator, pcout); + +#ifdef DEAL_II_WITH_COMPLEX_VALUES write_test>(data_file, dataset_dimensions, mpi_communicator, @@ -828,6 +838,7 @@ main(int argc, char **argv) dataset_dimensions, mpi_communicator, pcout); +#endif } { @@ -836,32 +847,43 @@ main(int argc, char **argv) HDF5::File::Mode::open); read_test(data_file, mpi_communicator, pcout); read_test(data_file, mpi_communicator, pcout); + +#ifdef DEAL_II_WITH_COMPLEX_VALUES read_test>(data_file, mpi_communicator, pcout); read_test>(data_file, mpi_communicator, pcout); +#endif + read_test(data_file, mpi_communicator, pcout); read_test(data_file, mpi_communicator, pcout); read_test(data_file, mpi_communicator, pcout); read_test(data_file, mpi_communicator, pcout); + +#ifdef DEAL_II_WITH_COMPLEX_VALUES read_test>(data_file, mpi_communicator, pcout); read_test>(data_file, mpi_communicator, pcout); +#endif + read_test(data_file, mpi_communicator, pcout); read_test(data_file, mpi_communicator, pcout); + +#ifdef DEAL_II_WITH_COMPLEX_VALUES read_test>(data_file, mpi_communicator, pcout); read_test>(data_file, mpi_communicator, pcout); +#endif } } catch (std::exception &exc) diff --git a/tests/base/hdf5_03.with_hdf5=true.with_complex_values=off.mpirun=1.output b/tests/base/hdf5_03.with_hdf5=true.with_complex_values=off.mpirun=1.output new file mode 100644 index 0000000000..8eeaa0101e --- /dev/null +++ b/tests/base/hdf5_03.with_hdf5=true.with_complex_values=off.mpirun=1.output @@ -0,0 +1,288 @@ + +DEAL::Write tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Write): 50 30 +DEAL::Size dataset_1 std::vector (Write): 1500 +DEAL::Rank dataset_1 std::vector (Write): 2 +DEAL::Sum dataset_1 std::vector (Write): 1.12425e+06 +DEAL::Dimensions dataset_2 std::vector (Write): 50 30 +DEAL::Size dataset_2 std::vector (Write): 1500 +DEAL::Rank dataset_2 std::vector (Write): 2 +DEAL::Sum dataset_2 std::vector (Write): 61.0000 +DEAL::Dimensions dataset_3 std::vector (Write): 50 30 +DEAL::Size dataset_3 std::vector (Write): 1500 +DEAL::Rank dataset_3 std::vector (Write): 2 +DEAL::Sum dataset_3 std::vector (Write): 1.12425e+06 +DEAL::Dimensions dataset_4 std::vector (Write): 50 30 +DEAL::Size dataset_4 std::vector (Write): 1500 +DEAL::Rank dataset_4 std::vector (Write): 2 +DEAL::Sum dataset_4 std::vector (Write): 1179.00 +DEAL::Hyperslab_a sum dataset_4 std::vector (Write): 45.0000 +DEAL::Hyperslab_b sum dataset_4 std::vector (Write): 6.00000 +DEAL::Write tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Write): 50 30 +DEAL::Size dataset_1 std::vector (Write): 1500 +DEAL::Rank dataset_1 std::vector (Write): 2 +DEAL::Sum dataset_1 std::vector (Write): 1.12425e+06 +DEAL::Dimensions dataset_2 std::vector (Write): 50 30 +DEAL::Size dataset_2 std::vector (Write): 1500 +DEAL::Rank dataset_2 std::vector (Write): 2 +DEAL::Sum dataset_2 std::vector (Write): 61.0000 +DEAL::Sum dataset_3 std::vector (Write): 1.12425e+06 +DEAL::Dimensions dataset_4 std::vector (Write): 50 30 +DEAL::Size dataset_4 std::vector (Write): 1500 +DEAL::Rank dataset_4 std::vector (Write): 2 +DEAL::Sum dataset_4 std::vector (Write): 1179.00 +DEAL::Hyperslab_a sum dataset_4 std::vector (Write): 45.0000 +DEAL::Hyperslab_b sum dataset_4 std::vector (Write): 6.00000 +DEAL::Write tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Write): 50 30 +DEAL::Size dataset_1 std::vector (Write): 1500 +DEAL::Rank dataset_1 std::vector (Write): 2 +DEAL::Sum dataset_1 std::vector (Write): 1124250 +DEAL::Dimensions dataset_2 std::vector (Write): 50 30 +DEAL::Size dataset_2 std::vector (Write): 1500 +DEAL::Rank dataset_2 std::vector (Write): 2 +DEAL::Sum dataset_2 std::vector (Write): 61 +DEAL::Dimensions dataset_4 std::vector (Write): 50 30 +DEAL::Size dataset_4 std::vector (Write): 1500 +DEAL::Rank dataset_4 std::vector (Write): 2 +DEAL::Sum dataset_4 std::vector (Write): 1179 +DEAL::Hyperslab_a sum dataset_4 std::vector (Write): 45 +DEAL::Hyperslab_b sum dataset_4 std::vector (Write): 6 +DEAL::Write tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Write): 50 30 +DEAL::Size dataset_1 std::vector (Write): 1500 +DEAL::Rank dataset_1 std::vector (Write): 2 +DEAL::Sum dataset_1 std::vector (Write): 1124250 +DEAL::Dimensions dataset_2 std::vector (Write): 50 30 +DEAL::Size dataset_2 std::vector (Write): 1500 +DEAL::Rank dataset_2 std::vector (Write): 2 +DEAL::Sum dataset_2 std::vector (Write): 61 +DEAL::Dimensions dataset_4 std::vector (Write): 50 30 +DEAL::Size dataset_4 std::vector (Write): 1500 +DEAL::Rank dataset_4 std::vector (Write): 2 +DEAL::Sum dataset_4 std::vector (Write): 1179 +DEAL::Hyperslab_a sum dataset_4 std::vector (Write): 45 +DEAL::Hyperslab_b sum dataset_4 std::vector (Write): 6 +DEAL::Write tests for FullMatrix datasets +DEAL::Dimensions dataset_1 FullMatrix (Write): 50 30 +DEAL::Size dataset_1 FullMatrix (Write): 1500 +DEAL::Rank dataset_1 FullMatrix (Write): 2 +DEAL::Sum dataset_1 FullMatrix (Write): 1.12425e+06 +DEAL::Dimensions dataset_2 FullMatrix (Write): 50 30 +DEAL::Size dataset_2 FullMatrix (Write): 1500 +DEAL::Rank dataset_2 FullMatrix (Write): 2 +DEAL::Sum dataset_2 FullMatrix (Write): 61.0000 +DEAL::Dimensions dataset_3 FullMatrix (Write): 50 30 +DEAL::Size dataset_3 FullMatrix (Write): 1500 +DEAL::Rank dataset_3 FullMatrix (Write): 2 +DEAL::Sum dataset_3 FullMatrix (Write): 1.12425e+06 +DEAL::Dimensions dataset_4 FullMatrix (Write): 50 30 +DEAL::Size dataset_4 FullMatrix (Write): 1500 +DEAL::Rank dataset_4 FullMatrix (Write): 2 +DEAL::Sum dataset_4 FullMatrix (Write): 1179.00 +DEAL::Hyperslab_a sum dataset_4 FullMatrix (Write): 45.0000 +DEAL::Hyperslab_b sum dataset_4 FullMatrix (Write): 6.00000 +DEAL::Write tests for FullMatrix datasets +DEAL::Dimensions dataset_1 FullMatrix (Write): 50 30 +DEAL::Size dataset_1 FullMatrix (Write): 1500 +DEAL::Rank dataset_1 FullMatrix (Write): 2 +DEAL::Sum dataset_1 FullMatrix (Write): 1.12425e+06 +DEAL::Dimensions dataset_2 FullMatrix (Write): 50 30 +DEAL::Size dataset_2 FullMatrix (Write): 1500 +DEAL::Rank dataset_2 FullMatrix (Write): 2 +DEAL::Sum dataset_2 FullMatrix (Write): 61.0000 +DEAL::Sum dataset_3 FullMatrix (Write): 1.12425e+06 +DEAL::Dimensions dataset_4 FullMatrix (Write): 50 30 +DEAL::Size dataset_4 FullMatrix (Write): 1500 +DEAL::Rank dataset_4 FullMatrix (Write): 2 +DEAL::Sum dataset_4 FullMatrix (Write): 1179.00 +DEAL::Hyperslab_a sum dataset_4 FullMatrix (Write): 45.0000 +DEAL::Hyperslab_b sum dataset_4 FullMatrix (Write): 6.00000 +DEAL::Write tests for datasets +DEAL::Dimensions dataset_1 (Write): 50 30 +DEAL::Size dataset_1 (Write): 1500 +DEAL::Rank dataset_1 (Write): 2 +DEAL::Sum dataset_1 (Write): 1.12425e+06 +DEAL::Dimensions dataset_2 (Write): 50 30 +DEAL::Size dataset_2 (Write): 1500 +DEAL::Rank dataset_2 (Write): 2 +DEAL::Sum dataset_2 (Write): 61.0000 +DEAL::Dimensions dataset_3 (Write): 50 30 +DEAL::Size dataset_3 (Write): 1500 +DEAL::Rank dataset_3 (Write): 2 +DEAL::Sum dataset_3 (Write): 1.12425e+06 +DEAL::Dimensions dataset_4 (Write): 50 30 +DEAL::Size dataset_4 (Write): 1500 +DEAL::Rank dataset_4 (Write): 2 +DEAL::Sum dataset_4 (Write): 1179.00 +DEAL::Hyperslab_a sum dataset_4 (Write): 45.0000 +DEAL::Hyperslab_b sum dataset_4 (Write): 6.00000 +DEAL::Write tests for datasets +DEAL::Dimensions dataset_1 (Write): 50 30 +DEAL::Size dataset_1 (Write): 1500 +DEAL::Rank dataset_1 (Write): 2 +DEAL::Sum dataset_1 (Write): 1.12425e+06 +DEAL::Dimensions dataset_2 (Write): 50 30 +DEAL::Size dataset_2 (Write): 1500 +DEAL::Rank dataset_2 (Write): 2 +DEAL::Sum dataset_2 (Write): 61.0000 +DEAL::Sum dataset_3 (Write): 1.12425e+06 +DEAL::Dimensions dataset_4 (Write): 50 30 +DEAL::Size dataset_4 (Write): 1500 +DEAL::Rank dataset_4 (Write): 2 +DEAL::Sum dataset_4 (Write): 1179.00 +DEAL::Hyperslab_a sum dataset_4 (Write): 45.0000 +DEAL::Hyperslab_b sum dataset_4 (Write): 6.00000 +DEAL::Read tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Read): 50 30 +DEAL::Size dataset_1 std::vector (Read): 1500 +DEAL::Rank dataset_1 std::vector (Read): 2 +DEAL::Sum dataset_1 std::vector (Read): 1.12425e+06 +DEAL::Dimensions dataset_2 std::vector (Read): 50 30 +DEAL::Size dataset_2 std::vector (Read): 1500 +DEAL::Rank dataset_2 std::vector (Read): 2 +DEAL::Sum dataset_2 std::vector (Read): 16.0000 +DEAL::Selection dataset_2 std::vector (Read): 2.00000, 3.00000, 5.00000, 6.00000 +DEAL::Dimensions dataset_3 std::vector (Read): 50 30 +DEAL::Size dataset_3 std::vector (Read): 1500 +DEAL::Rank dataset_3 std::vector (Read): 2 +DEAL::Sum dataset_3 std::vector (Read): 1.12425e+06 +DEAL::Dimensions dataset_4 std::vector (Read): 50 30 +DEAL::Size dataset_4 std::vector (Read): 1500 +DEAL::Rank dataset_4 std::vector (Read): 2 +DEAL::Sum dataset_4 std::vector (Read): 1173.00 +DEAL::Hyperslab_a sum dataset_4 std::vector (Read): 45.0000 +DEAL::Hyperslab_b sum dataset_4 std::vector (Read): 0.00000 +DEAL::Read tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Read): 50 30 +DEAL::Size dataset_1 std::vector (Read): 1500 +DEAL::Rank dataset_1 std::vector (Read): 2 +DEAL::Sum dataset_1 std::vector (Read): 1.12425e+06 +DEAL::Dimensions dataset_2 std::vector (Read): 50 30 +DEAL::Size dataset_2 std::vector (Read): 1500 +DEAL::Rank dataset_2 std::vector (Read): 2 +DEAL::Sum dataset_2 std::vector (Read): 16.0000 +DEAL::Selection dataset_2 std::vector (Read): 2.00000, 3.00000, 5.00000, 6.00000 +DEAL::Dimensions dataset_3 std::vector (Read): 50 30 +DEAL::Size dataset_3 std::vector (Read): 1500 +DEAL::Rank dataset_3 std::vector (Read): 2 +DEAL::Sum dataset_3 std::vector (Read): 1.12425e+06 +DEAL::Dimensions dataset_4 std::vector (Read): 50 30 +DEAL::Size dataset_4 std::vector (Read): 1500 +DEAL::Rank dataset_4 std::vector (Read): 2 +DEAL::Sum dataset_4 std::vector (Read): 1173.00 +DEAL::Hyperslab_a sum dataset_4 std::vector (Read): 45.0000 +DEAL::Hyperslab_b sum dataset_4 std::vector (Read): 0.00000 +DEAL::Read tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Read): 50 30 +DEAL::Size dataset_1 std::vector (Read): 1500 +DEAL::Rank dataset_1 std::vector (Read): 2 +DEAL::Sum dataset_1 std::vector (Read): 1124250 +DEAL::Dimensions dataset_2 std::vector (Read): 50 30 +DEAL::Size dataset_2 std::vector (Read): 1500 +DEAL::Rank dataset_2 std::vector (Read): 2 +DEAL::Sum dataset_2 std::vector (Read): 16 +DEAL::Selection dataset_2 std::vector (Read): 2, 3, 5, 6 +DEAL::Dimensions dataset_4 std::vector (Read): 50 30 +DEAL::Size dataset_4 std::vector (Read): 1500 +DEAL::Rank dataset_4 std::vector (Read): 2 +DEAL::Sum dataset_4 std::vector (Read): 1173 +DEAL::Hyperslab_a sum dataset_4 std::vector (Read): 45 +DEAL::Hyperslab_b sum dataset_4 std::vector (Read): 0 +DEAL::Read tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Read): 50 30 +DEAL::Size dataset_1 std::vector (Read): 1500 +DEAL::Rank dataset_1 std::vector (Read): 2 +DEAL::Sum dataset_1 std::vector (Read): 1124250 +DEAL::Dimensions dataset_2 std::vector (Read): 50 30 +DEAL::Size dataset_2 std::vector (Read): 1500 +DEAL::Rank dataset_2 std::vector (Read): 2 +DEAL::Sum dataset_2 std::vector (Read): 16 +DEAL::Selection dataset_2 std::vector (Read): 2, 3, 5, 6 +DEAL::Dimensions dataset_4 std::vector (Read): 50 30 +DEAL::Size dataset_4 std::vector (Read): 1500 +DEAL::Rank dataset_4 std::vector (Read): 2 +DEAL::Sum dataset_4 std::vector (Read): 1173 +DEAL::Hyperslab_a sum dataset_4 std::vector (Read): 45 +DEAL::Hyperslab_b sum dataset_4 std::vector (Read): 0 +DEAL::Read tests for FullMatrix datasets +DEAL::Dimensions dataset_1 FullMatrix (Read): 50 30 +DEAL::Size dataset_1 FullMatrix (Read): 1500 +DEAL::Rank dataset_1 FullMatrix (Read): 2 +DEAL::Sum dataset_1 FullMatrix (Read): 1.12425e+06 +DEAL::Dimensions dataset_2 FullMatrix (Read): 50 30 +DEAL::Size dataset_2 FullMatrix (Read): 1500 +DEAL::Rank dataset_2 FullMatrix (Read): 2 +DEAL::Sum dataset_2 FullMatrix (Read): 16.0000 +DEAL::Selection dataset_2 FullMatrix (Read): 2.00000, 3.00000, 5.00000, 6.00000 +DEAL::Dimensions dataset_3 FullMatrix (Read): 50 30 +DEAL::Size dataset_3 FullMatrix (Read): 1500 +DEAL::Rank dataset_3 FullMatrix (Read): 2 +DEAL::Sum dataset_3 FullMatrix (Read): 1.12425e+06 +DEAL::Dimensions dataset_4 FullMatrix (Read): 50 30 +DEAL::Size dataset_4 FullMatrix (Read): 1500 +DEAL::Rank dataset_4 FullMatrix (Read): 2 +DEAL::Sum dataset_4 FullMatrix (Read): 1173.00 +DEAL::Hyperslab_a sum dataset_4 FullMatrix (Read): 45.0000 +DEAL::Hyperslab_b sum dataset_4 FullMatrix (Read): 0.00000 +DEAL::Read tests for FullMatrix datasets +DEAL::Dimensions dataset_1 FullMatrix (Read): 50 30 +DEAL::Size dataset_1 FullMatrix (Read): 1500 +DEAL::Rank dataset_1 FullMatrix (Read): 2 +DEAL::Sum dataset_1 FullMatrix (Read): 1.12425e+06 +DEAL::Dimensions dataset_2 FullMatrix (Read): 50 30 +DEAL::Size dataset_2 FullMatrix (Read): 1500 +DEAL::Rank dataset_2 FullMatrix (Read): 2 +DEAL::Sum dataset_2 FullMatrix (Read): 16.0000 +DEAL::Selection dataset_2 FullMatrix (Read): 2.00000, 3.00000, 5.00000, 6.00000 +DEAL::Dimensions dataset_3 FullMatrix (Read): 50 30 +DEAL::Size dataset_3 FullMatrix (Read): 1500 +DEAL::Rank dataset_3 FullMatrix (Read): 2 +DEAL::Sum dataset_3 FullMatrix (Read): 1.12425e+06 +DEAL::Dimensions dataset_4 FullMatrix (Read): 50 30 +DEAL::Size dataset_4 FullMatrix (Read): 1500 +DEAL::Rank dataset_4 FullMatrix (Read): 2 +DEAL::Sum dataset_4 FullMatrix (Read): 1173.00 +DEAL::Hyperslab_a sum dataset_4 FullMatrix (Read): 45.0000 +DEAL::Hyperslab_b sum dataset_4 FullMatrix (Read): 0.00000 +DEAL::Read tests for datasets +DEAL::Dimensions dataset_1 (Read): 50 30 +DEAL::Size dataset_1 (Read): 1500 +DEAL::Rank dataset_1 (Read): 2 +DEAL::Sum dataset_1 (Read): 1.12425e+06 +DEAL::Dimensions dataset_2 (Read): 50 30 +DEAL::Size dataset_2 (Read): 1500 +DEAL::Rank dataset_2 (Read): 2 +DEAL::Sum dataset_2 (Read): 16.0000 +DEAL::Selection dataset_2 (Read): 2.00000, 3.00000, 5.00000, 6.00000 +DEAL::Dimensions dataset_3 (Read): 50 30 +DEAL::Size dataset_3 (Read): 1500 +DEAL::Rank dataset_3 (Read): 2 +DEAL::Sum dataset_3 (Read): 1.12425e+06 +DEAL::Dimensions dataset_4 (Read): 50 30 +DEAL::Size dataset_4 (Read): 1500 +DEAL::Rank dataset_4 (Read): 2 +DEAL::Sum dataset_4 (Read): 1173.00 +DEAL::Hyperslab_a sum dataset_4 (Read): 45.0000 +DEAL::Hyperslab_b sum dataset_4 (Read): 0.00000 +DEAL::Read tests for datasets +DEAL::Dimensions dataset_1 (Read): 50 30 +DEAL::Size dataset_1 (Read): 1500 +DEAL::Rank dataset_1 (Read): 2 +DEAL::Sum dataset_1 (Read): 1.12425e+06 +DEAL::Dimensions dataset_2 (Read): 50 30 +DEAL::Size dataset_2 (Read): 1500 +DEAL::Rank dataset_2 (Read): 2 +DEAL::Sum dataset_2 (Read): 16.0000 +DEAL::Selection dataset_2 (Read): 2.00000, 3.00000, 5.00000, 6.00000 +DEAL::Dimensions dataset_3 (Read): 50 30 +DEAL::Size dataset_3 (Read): 1500 +DEAL::Rank dataset_3 (Read): 2 +DEAL::Sum dataset_3 (Read): 1.12425e+06 +DEAL::Dimensions dataset_4 (Read): 50 30 +DEAL::Size dataset_4 (Read): 1500 +DEAL::Rank dataset_4 (Read): 2 +DEAL::Sum dataset_4 (Read): 1173.00 +DEAL::Hyperslab_a sum dataset_4 (Read): 45.0000 +DEAL::Hyperslab_b sum dataset_4 (Read): 0.00000 diff --git a/tests/base/hdf5_03.with_hdf5=true.with_complex_values=off.mpirun=4.output b/tests/base/hdf5_03.with_hdf5=true.with_complex_values=off.mpirun=4.output new file mode 100644 index 0000000000..6efb85d4a9 --- /dev/null +++ b/tests/base/hdf5_03.with_hdf5=true.with_complex_values=off.mpirun=4.output @@ -0,0 +1,288 @@ + +DEAL::Write tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Write): 50 30 +DEAL::Size dataset_1 std::vector (Write): 1500 +DEAL::Rank dataset_1 std::vector (Write): 2 +DEAL::Sum dataset_1 std::vector (Write): 1.12425e+06 +DEAL::Dimensions dataset_2 std::vector (Write): 50 30 +DEAL::Size dataset_2 std::vector (Write): 1500 +DEAL::Rank dataset_2 std::vector (Write): 2 +DEAL::Sum dataset_2 std::vector (Write): 61.0000 +DEAL::Dimensions dataset_3 std::vector (Write): 50 30 +DEAL::Size dataset_3 std::vector (Write): 1500 +DEAL::Rank dataset_3 std::vector (Write): 2 +DEAL::Sum dataset_3 std::vector (Write): 1.12425e+06 +DEAL::Dimensions dataset_4 std::vector (Write): 50 30 +DEAL::Size dataset_4 std::vector (Write): 1500 +DEAL::Rank dataset_4 std::vector (Write): 2 +DEAL::Sum dataset_4 std::vector (Write): 1179.00 +DEAL::Hyperslab_a sum dataset_4 std::vector (Write): 45.0000 +DEAL::Hyperslab_b sum dataset_4 std::vector (Write): 6.00000 +DEAL::Write tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Write): 50 30 +DEAL::Size dataset_1 std::vector (Write): 1500 +DEAL::Rank dataset_1 std::vector (Write): 2 +DEAL::Sum dataset_1 std::vector (Write): 1.12425e+06 +DEAL::Dimensions dataset_2 std::vector (Write): 50 30 +DEAL::Size dataset_2 std::vector (Write): 1500 +DEAL::Rank dataset_2 std::vector (Write): 2 +DEAL::Sum dataset_2 std::vector (Write): 61.0000 +DEAL::Sum dataset_3 std::vector (Write): 1.12425e+06 +DEAL::Dimensions dataset_4 std::vector (Write): 50 30 +DEAL::Size dataset_4 std::vector (Write): 1500 +DEAL::Rank dataset_4 std::vector (Write): 2 +DEAL::Sum dataset_4 std::vector (Write): 1179.00 +DEAL::Hyperslab_a sum dataset_4 std::vector (Write): 45.0000 +DEAL::Hyperslab_b sum dataset_4 std::vector (Write): 6.00000 +DEAL::Write tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Write): 50 30 +DEAL::Size dataset_1 std::vector (Write): 1500 +DEAL::Rank dataset_1 std::vector (Write): 2 +DEAL::Sum dataset_1 std::vector (Write): 1124250 +DEAL::Dimensions dataset_2 std::vector (Write): 50 30 +DEAL::Size dataset_2 std::vector (Write): 1500 +DEAL::Rank dataset_2 std::vector (Write): 2 +DEAL::Sum dataset_2 std::vector (Write): 61 +DEAL::Dimensions dataset_4 std::vector (Write): 50 30 +DEAL::Size dataset_4 std::vector (Write): 1500 +DEAL::Rank dataset_4 std::vector (Write): 2 +DEAL::Sum dataset_4 std::vector (Write): 1179 +DEAL::Hyperslab_a sum dataset_4 std::vector (Write): 45 +DEAL::Hyperslab_b sum dataset_4 std::vector (Write): 6 +DEAL::Write tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Write): 50 30 +DEAL::Size dataset_1 std::vector (Write): 1500 +DEAL::Rank dataset_1 std::vector (Write): 2 +DEAL::Sum dataset_1 std::vector (Write): 1124250 +DEAL::Dimensions dataset_2 std::vector (Write): 50 30 +DEAL::Size dataset_2 std::vector (Write): 1500 +DEAL::Rank dataset_2 std::vector (Write): 2 +DEAL::Sum dataset_2 std::vector (Write): 61 +DEAL::Dimensions dataset_4 std::vector (Write): 50 30 +DEAL::Size dataset_4 std::vector (Write): 1500 +DEAL::Rank dataset_4 std::vector (Write): 2 +DEAL::Sum dataset_4 std::vector (Write): 1179 +DEAL::Hyperslab_a sum dataset_4 std::vector (Write): 45 +DEAL::Hyperslab_b sum dataset_4 std::vector (Write): 6 +DEAL::Write tests for FullMatrix datasets +DEAL::Dimensions dataset_1 FullMatrix (Write): 50 30 +DEAL::Size dataset_1 FullMatrix (Write): 1500 +DEAL::Rank dataset_1 FullMatrix (Write): 2 +DEAL::Sum dataset_1 FullMatrix (Write): 1.12425e+06 +DEAL::Dimensions dataset_2 FullMatrix (Write): 50 30 +DEAL::Size dataset_2 FullMatrix (Write): 1500 +DEAL::Rank dataset_2 FullMatrix (Write): 2 +DEAL::Sum dataset_2 FullMatrix (Write): 61.0000 +DEAL::Dimensions dataset_3 FullMatrix (Write): 50 30 +DEAL::Size dataset_3 FullMatrix (Write): 1500 +DEAL::Rank dataset_3 FullMatrix (Write): 2 +DEAL::Sum dataset_3 FullMatrix (Write): 1.12425e+06 +DEAL::Dimensions dataset_4 FullMatrix (Write): 50 30 +DEAL::Size dataset_4 FullMatrix (Write): 1500 +DEAL::Rank dataset_4 FullMatrix (Write): 2 +DEAL::Sum dataset_4 FullMatrix (Write): 1179.00 +DEAL::Hyperslab_a sum dataset_4 FullMatrix (Write): 45.0000 +DEAL::Hyperslab_b sum dataset_4 FullMatrix (Write): 6.00000 +DEAL::Write tests for FullMatrix datasets +DEAL::Dimensions dataset_1 FullMatrix (Write): 50 30 +DEAL::Size dataset_1 FullMatrix (Write): 1500 +DEAL::Rank dataset_1 FullMatrix (Write): 2 +DEAL::Sum dataset_1 FullMatrix (Write): 1.12425e+06 +DEAL::Dimensions dataset_2 FullMatrix (Write): 50 30 +DEAL::Size dataset_2 FullMatrix (Write): 1500 +DEAL::Rank dataset_2 FullMatrix (Write): 2 +DEAL::Sum dataset_2 FullMatrix (Write): 61.0000 +DEAL::Sum dataset_3 FullMatrix (Write): 1.12425e+06 +DEAL::Dimensions dataset_4 FullMatrix (Write): 50 30 +DEAL::Size dataset_4 FullMatrix (Write): 1500 +DEAL::Rank dataset_4 FullMatrix (Write): 2 +DEAL::Sum dataset_4 FullMatrix (Write): 1179.00 +DEAL::Hyperslab_a sum dataset_4 FullMatrix (Write): 45.0000 +DEAL::Hyperslab_b sum dataset_4 FullMatrix (Write): 6.00000 +DEAL::Write tests for datasets +DEAL::Dimensions dataset_1 (Write): 50 30 +DEAL::Size dataset_1 (Write): 1500 +DEAL::Rank dataset_1 (Write): 2 +DEAL::Sum dataset_1 (Write): 1.12425e+06 +DEAL::Dimensions dataset_2 (Write): 50 30 +DEAL::Size dataset_2 (Write): 1500 +DEAL::Rank dataset_2 (Write): 2 +DEAL::Sum dataset_2 (Write): 61.0000 +DEAL::Dimensions dataset_3 (Write): 50 30 +DEAL::Size dataset_3 (Write): 1500 +DEAL::Rank dataset_3 (Write): 2 +DEAL::Sum dataset_3 (Write): 1.12425e+06 +DEAL::Dimensions dataset_4 (Write): 50 30 +DEAL::Size dataset_4 (Write): 1500 +DEAL::Rank dataset_4 (Write): 2 +DEAL::Sum dataset_4 (Write): 1179.00 +DEAL::Hyperslab_a sum dataset_4 (Write): 45.0000 +DEAL::Hyperslab_b sum dataset_4 (Write): 6.00000 +DEAL::Write tests for datasets +DEAL::Dimensions dataset_1 (Write): 50 30 +DEAL::Size dataset_1 (Write): 1500 +DEAL::Rank dataset_1 (Write): 2 +DEAL::Sum dataset_1 (Write): 1.12425e+06 +DEAL::Dimensions dataset_2 (Write): 50 30 +DEAL::Size dataset_2 (Write): 1500 +DEAL::Rank dataset_2 (Write): 2 +DEAL::Sum dataset_2 (Write): 61.0000 +DEAL::Sum dataset_3 (Write): 1.12425e+06 +DEAL::Dimensions dataset_4 (Write): 50 30 +DEAL::Size dataset_4 (Write): 1500 +DEAL::Rank dataset_4 (Write): 2 +DEAL::Sum dataset_4 (Write): 1179.00 +DEAL::Hyperslab_a sum dataset_4 (Write): 45.0000 +DEAL::Hyperslab_b sum dataset_4 (Write): 6.00000 +DEAL::Read tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Read): 50 30 +DEAL::Size dataset_1 std::vector (Read): 1500 +DEAL::Rank dataset_1 std::vector (Read): 2 +DEAL::Sum dataset_1 std::vector (Read): 1.12425e+06 +DEAL::Dimensions dataset_2 std::vector (Read): 50 30 +DEAL::Size dataset_2 std::vector (Read): 1500 +DEAL::Rank dataset_2 std::vector (Read): 2 +DEAL::Sum dataset_2 std::vector (Read): 61.0000 +DEAL::Selection dataset_2 std::vector (Read): 2.00000, 3.00000, 5.00000, 6.00000 +DEAL::Dimensions dataset_3 std::vector (Read): 50 30 +DEAL::Size dataset_3 std::vector (Read): 1500 +DEAL::Rank dataset_3 std::vector (Read): 2 +DEAL::Sum dataset_3 std::vector (Read): 1.12425e+06 +DEAL::Dimensions dataset_4 std::vector (Read): 50 30 +DEAL::Size dataset_4 std::vector (Read): 1500 +DEAL::Rank dataset_4 std::vector (Read): 2 +DEAL::Sum dataset_4 std::vector (Read): 1179.00 +DEAL::Hyperslab_a sum dataset_4 std::vector (Read): 45.0000 +DEAL::Hyperslab_b sum dataset_4 std::vector (Read): 6.00000 +DEAL::Read tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Read): 50 30 +DEAL::Size dataset_1 std::vector (Read): 1500 +DEAL::Rank dataset_1 std::vector (Read): 2 +DEAL::Sum dataset_1 std::vector (Read): 1.12425e+06 +DEAL::Dimensions dataset_2 std::vector (Read): 50 30 +DEAL::Size dataset_2 std::vector (Read): 1500 +DEAL::Rank dataset_2 std::vector (Read): 2 +DEAL::Sum dataset_2 std::vector (Read): 61.0000 +DEAL::Selection dataset_2 std::vector (Read): 2.00000, 3.00000, 5.00000, 6.00000 +DEAL::Dimensions dataset_3 std::vector (Read): 50 30 +DEAL::Size dataset_3 std::vector (Read): 1500 +DEAL::Rank dataset_3 std::vector (Read): 2 +DEAL::Sum dataset_3 std::vector (Read): 1.12425e+06 +DEAL::Dimensions dataset_4 std::vector (Read): 50 30 +DEAL::Size dataset_4 std::vector (Read): 1500 +DEAL::Rank dataset_4 std::vector (Read): 2 +DEAL::Sum dataset_4 std::vector (Read): 1179.00 +DEAL::Hyperslab_a sum dataset_4 std::vector (Read): 45.0000 +DEAL::Hyperslab_b sum dataset_4 std::vector (Read): 6.00000 +DEAL::Read tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Read): 50 30 +DEAL::Size dataset_1 std::vector (Read): 1500 +DEAL::Rank dataset_1 std::vector (Read): 2 +DEAL::Sum dataset_1 std::vector (Read): 1124250 +DEAL::Dimensions dataset_2 std::vector (Read): 50 30 +DEAL::Size dataset_2 std::vector (Read): 1500 +DEAL::Rank dataset_2 std::vector (Read): 2 +DEAL::Sum dataset_2 std::vector (Read): 61 +DEAL::Selection dataset_2 std::vector (Read): 2, 3, 5, 6 +DEAL::Dimensions dataset_4 std::vector (Read): 50 30 +DEAL::Size dataset_4 std::vector (Read): 1500 +DEAL::Rank dataset_4 std::vector (Read): 2 +DEAL::Sum dataset_4 std::vector (Read): 1179 +DEAL::Hyperslab_a sum dataset_4 std::vector (Read): 45 +DEAL::Hyperslab_b sum dataset_4 std::vector (Read): 6 +DEAL::Read tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Read): 50 30 +DEAL::Size dataset_1 std::vector (Read): 1500 +DEAL::Rank dataset_1 std::vector (Read): 2 +DEAL::Sum dataset_1 std::vector (Read): 1124250 +DEAL::Dimensions dataset_2 std::vector (Read): 50 30 +DEAL::Size dataset_2 std::vector (Read): 1500 +DEAL::Rank dataset_2 std::vector (Read): 2 +DEAL::Sum dataset_2 std::vector (Read): 61 +DEAL::Selection dataset_2 std::vector (Read): 2, 3, 5, 6 +DEAL::Dimensions dataset_4 std::vector (Read): 50 30 +DEAL::Size dataset_4 std::vector (Read): 1500 +DEAL::Rank dataset_4 std::vector (Read): 2 +DEAL::Sum dataset_4 std::vector (Read): 1179 +DEAL::Hyperslab_a sum dataset_4 std::vector (Read): 45 +DEAL::Hyperslab_b sum dataset_4 std::vector (Read): 6 +DEAL::Read tests for FullMatrix datasets +DEAL::Dimensions dataset_1 FullMatrix (Read): 50 30 +DEAL::Size dataset_1 FullMatrix (Read): 1500 +DEAL::Rank dataset_1 FullMatrix (Read): 2 +DEAL::Sum dataset_1 FullMatrix (Read): 1.12425e+06 +DEAL::Dimensions dataset_2 FullMatrix (Read): 50 30 +DEAL::Size dataset_2 FullMatrix (Read): 1500 +DEAL::Rank dataset_2 FullMatrix (Read): 2 +DEAL::Sum dataset_2 FullMatrix (Read): 61.0000 +DEAL::Selection dataset_2 FullMatrix (Read): 2.00000, 3.00000, 5.00000, 6.00000 +DEAL::Dimensions dataset_3 FullMatrix (Read): 50 30 +DEAL::Size dataset_3 FullMatrix (Read): 1500 +DEAL::Rank dataset_3 FullMatrix (Read): 2 +DEAL::Sum dataset_3 FullMatrix (Read): 1.12425e+06 +DEAL::Dimensions dataset_4 FullMatrix (Read): 50 30 +DEAL::Size dataset_4 FullMatrix (Read): 1500 +DEAL::Rank dataset_4 FullMatrix (Read): 2 +DEAL::Sum dataset_4 FullMatrix (Read): 1179.00 +DEAL::Hyperslab_a sum dataset_4 FullMatrix (Read): 45.0000 +DEAL::Hyperslab_b sum dataset_4 FullMatrix (Read): 6.00000 +DEAL::Read tests for FullMatrix datasets +DEAL::Dimensions dataset_1 FullMatrix (Read): 50 30 +DEAL::Size dataset_1 FullMatrix (Read): 1500 +DEAL::Rank dataset_1 FullMatrix (Read): 2 +DEAL::Sum dataset_1 FullMatrix (Read): 1.12425e+06 +DEAL::Dimensions dataset_2 FullMatrix (Read): 50 30 +DEAL::Size dataset_2 FullMatrix (Read): 1500 +DEAL::Rank dataset_2 FullMatrix (Read): 2 +DEAL::Sum dataset_2 FullMatrix (Read): 61.0000 +DEAL::Selection dataset_2 FullMatrix (Read): 2.00000, 3.00000, 5.00000, 6.00000 +DEAL::Dimensions dataset_3 FullMatrix (Read): 50 30 +DEAL::Size dataset_3 FullMatrix (Read): 1500 +DEAL::Rank dataset_3 FullMatrix (Read): 2 +DEAL::Sum dataset_3 FullMatrix (Read): 1.12425e+06 +DEAL::Dimensions dataset_4 FullMatrix (Read): 50 30 +DEAL::Size dataset_4 FullMatrix (Read): 1500 +DEAL::Rank dataset_4 FullMatrix (Read): 2 +DEAL::Sum dataset_4 FullMatrix (Read): 1179.00 +DEAL::Hyperslab_a sum dataset_4 FullMatrix (Read): 45.0000 +DEAL::Hyperslab_b sum dataset_4 FullMatrix (Read): 6.00000 +DEAL::Read tests for datasets +DEAL::Dimensions dataset_1 (Read): 50 30 +DEAL::Size dataset_1 (Read): 1500 +DEAL::Rank dataset_1 (Read): 2 +DEAL::Sum dataset_1 (Read): 1.12425e+06 +DEAL::Dimensions dataset_2 (Read): 50 30 +DEAL::Size dataset_2 (Read): 1500 +DEAL::Rank dataset_2 (Read): 2 +DEAL::Sum dataset_2 (Read): 61.0000 +DEAL::Selection dataset_2 (Read): 2.00000, 3.00000, 5.00000, 6.00000 +DEAL::Dimensions dataset_3 (Read): 50 30 +DEAL::Size dataset_3 (Read): 1500 +DEAL::Rank dataset_3 (Read): 2 +DEAL::Sum dataset_3 (Read): 1.12425e+06 +DEAL::Dimensions dataset_4 (Read): 50 30 +DEAL::Size dataset_4 (Read): 1500 +DEAL::Rank dataset_4 (Read): 2 +DEAL::Sum dataset_4 (Read): 1179.00 +DEAL::Hyperslab_a sum dataset_4 (Read): 45.0000 +DEAL::Hyperslab_b sum dataset_4 (Read): 6.00000 +DEAL::Read tests for datasets +DEAL::Dimensions dataset_1 (Read): 50 30 +DEAL::Size dataset_1 (Read): 1500 +DEAL::Rank dataset_1 (Read): 2 +DEAL::Sum dataset_1 (Read): 1.12425e+06 +DEAL::Dimensions dataset_2 (Read): 50 30 +DEAL::Size dataset_2 (Read): 1500 +DEAL::Rank dataset_2 (Read): 2 +DEAL::Sum dataset_2 (Read): 61.0000 +DEAL::Selection dataset_2 (Read): 2.00000, 3.00000, 5.00000, 6.00000 +DEAL::Dimensions dataset_3 (Read): 50 30 +DEAL::Size dataset_3 (Read): 1500 +DEAL::Rank dataset_3 (Read): 2 +DEAL::Sum dataset_3 (Read): 1.12425e+06 +DEAL::Dimensions dataset_4 (Read): 50 30 +DEAL::Size dataset_4 (Read): 1500 +DEAL::Rank dataset_4 (Read): 2 +DEAL::Sum dataset_4 (Read): 1179.00 +DEAL::Hyperslab_a sum dataset_4 (Read): 45.0000 +DEAL::Hyperslab_b sum dataset_4 (Read): 6.00000 diff --git a/tests/base/hdf5_04.cc b/tests/base/hdf5_04.cc index b73992348c..7604669203 100644 --- a/tests/base/hdf5_04.cc +++ b/tests/base/hdf5_04.cc @@ -734,40 +734,62 @@ main() write_test(data_file, dataset_dimensions); write_test(data_file, dataset_dimensions); + +#ifdef DEAL_II_WITH_COMPLEX_VALUES write_test>(data_file, dataset_dimensions); write_test>(data_file, dataset_dimensions); +#endif + write_test(data_file, dataset_dimensions); write_test(data_file, dataset_dimensions); write_test(data_file, dataset_dimensions); write_test(data_file, dataset_dimensions); + +#ifdef DEAL_II_WITH_COMPLEX_VALUES write_test>(data_file, dataset_dimensions); write_test>(data_file, dataset_dimensions); +#endif + write_test(data_file, dataset_dimensions); write_test(data_file, dataset_dimensions); + +#ifdef DEAL_II_WITH_COMPLEX_VALUES write_test>(data_file, dataset_dimensions); write_test>(data_file, dataset_dimensions); +#endif } { HDF5::File data_file(filename, HDF5::File::Mode::open); read_test(data_file); read_test(data_file); + +#ifdef DEAL_II_WITH_COMPLEX_VALUES read_test>(data_file); read_test>(data_file); +#endif + read_test(data_file); read_test(data_file); read_test(data_file); read_test(data_file); + +#ifdef DEAL_II_WITH_COMPLEX_VALUES read_test>(data_file); read_test>(data_file); +#endif + read_test(data_file); read_test(data_file); + +#ifdef DEAL_II_WITH_COMPLEX_VALUES read_test>(data_file); read_test>(data_file); +#endif } } catch (std::exception &exc) diff --git a/tests/base/hdf5_04.with_hdf5=true.with_complex_values=off.output b/tests/base/hdf5_04.with_hdf5=true.with_complex_values=off.output new file mode 100644 index 0000000000..da54d4be8f --- /dev/null +++ b/tests/base/hdf5_04.with_hdf5=true.with_complex_values=off.output @@ -0,0 +1,328 @@ + +DEAL::Write tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Write): 50 30 +DEAL::Size dataset_1 std::vector (Write): 1500 +DEAL::Rank dataset_1 std::vector (Write): 2 +DEAL::Sum dataset_1 std::vector (Write): 1.12425e+06 +DEAL::Dimensions dataset_2 std::vector (Write): 50 30 +DEAL::Size dataset_2 std::vector (Write): 1500 +DEAL::Rank dataset_2 std::vector (Write): 2 +DEAL::Sum dataset_2 std::vector (Write): 61.0000 +DEAL::Dimensions dataset_3 std::vector (Write): 50 30 +DEAL::Size dataset_3 std::vector (Write): 1500 +DEAL::Rank dataset_3 std::vector (Write): 2 +DEAL::Sum dataset_3 std::vector (Write): 1.12425e+06 +DEAL::Dimensions dataset_4 std::vector (Write): 50 30 +DEAL::Size dataset_4 std::vector (Write): 1500 +DEAL::Rank dataset_4 std::vector (Write): 2 +DEAL::Sum dataset_4 std::vector (Write): 1179.00 +DEAL::Hyperslab_a sum dataset_4 std::vector (Write): 45.0000 +DEAL::Hyperslab_b sum dataset_4 std::vector (Write): 6.00000 +DEAL::Sum dataset_5 std::vector (Write): 1.12425e+06 +DEAL::Write tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Write): 50 30 +DEAL::Size dataset_1 std::vector (Write): 1500 +DEAL::Rank dataset_1 std::vector (Write): 2 +DEAL::Sum dataset_1 std::vector (Write): 1.12425e+06 +DEAL::Dimensions dataset_2 std::vector (Write): 50 30 +DEAL::Size dataset_2 std::vector (Write): 1500 +DEAL::Rank dataset_2 std::vector (Write): 2 +DEAL::Sum dataset_2 std::vector (Write): 61.0000 +DEAL::Sum dataset_3 std::vector (Write): 1.12425e+06 +DEAL::Dimensions dataset_4 std::vector (Write): 50 30 +DEAL::Size dataset_4 std::vector (Write): 1500 +DEAL::Rank dataset_4 std::vector (Write): 2 +DEAL::Sum dataset_4 std::vector (Write): 1179.00 +DEAL::Hyperslab_a sum dataset_4 std::vector (Write): 45.0000 +DEAL::Hyperslab_b sum dataset_4 std::vector (Write): 6.00000 +DEAL::Sum dataset_5 std::vector (Write): 1.12425e+06 +DEAL::Write tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Write): 50 30 +DEAL::Size dataset_1 std::vector (Write): 1500 +DEAL::Rank dataset_1 std::vector (Write): 2 +DEAL::Sum dataset_1 std::vector (Write): 1124250 +DEAL::Dimensions dataset_2 std::vector (Write): 50 30 +DEAL::Size dataset_2 std::vector (Write): 1500 +DEAL::Rank dataset_2 std::vector (Write): 2 +DEAL::Sum dataset_2 std::vector (Write): 61 +DEAL::Dimensions dataset_4 std::vector (Write): 50 30 +DEAL::Size dataset_4 std::vector (Write): 1500 +DEAL::Rank dataset_4 std::vector (Write): 2 +DEAL::Sum dataset_4 std::vector (Write): 1179 +DEAL::Hyperslab_a sum dataset_4 std::vector (Write): 45 +DEAL::Hyperslab_b sum dataset_4 std::vector (Write): 6 +DEAL::Sum dataset_5 std::vector (Write): 1124250 +DEAL::Write tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Write): 50 30 +DEAL::Size dataset_1 std::vector (Write): 1500 +DEAL::Rank dataset_1 std::vector (Write): 2 +DEAL::Sum dataset_1 std::vector (Write): 1124250 +DEAL::Dimensions dataset_2 std::vector (Write): 50 30 +DEAL::Size dataset_2 std::vector (Write): 1500 +DEAL::Rank dataset_2 std::vector (Write): 2 +DEAL::Sum dataset_2 std::vector (Write): 61 +DEAL::Dimensions dataset_4 std::vector (Write): 50 30 +DEAL::Size dataset_4 std::vector (Write): 1500 +DEAL::Rank dataset_4 std::vector (Write): 2 +DEAL::Sum dataset_4 std::vector (Write): 1179 +DEAL::Hyperslab_a sum dataset_4 std::vector (Write): 45 +DEAL::Hyperslab_b sum dataset_4 std::vector (Write): 6 +DEAL::Sum dataset_5 std::vector (Write): 1124250 +DEAL::Write tests for FullMatrix datasets +DEAL::Dimensions dataset_1 FullMatrix (Write): 50 30 +DEAL::Size dataset_1 FullMatrix (Write): 1500 +DEAL::Rank dataset_1 FullMatrix (Write): 2 +DEAL::Sum dataset_1 FullMatrix (Write): 1.12425e+06 +DEAL::Dimensions dataset_2 FullMatrix (Write): 50 30 +DEAL::Size dataset_2 FullMatrix (Write): 1500 +DEAL::Rank dataset_2 FullMatrix (Write): 2 +DEAL::Sum dataset_2 FullMatrix (Write): 61.0000 +DEAL::Dimensions dataset_3 FullMatrix (Write): 50 30 +DEAL::Size dataset_3 FullMatrix (Write): 1500 +DEAL::Rank dataset_3 FullMatrix (Write): 2 +DEAL::Sum dataset_3 FullMatrix (Write): 1.12425e+06 +DEAL::Dimensions dataset_4 FullMatrix (Write): 50 30 +DEAL::Size dataset_4 FullMatrix (Write): 1500 +DEAL::Rank dataset_4 FullMatrix (Write): 2 +DEAL::Sum dataset_4 FullMatrix (Write): 1179.00 +DEAL::Hyperslab_a sum dataset_4 FullMatrix (Write): 45.0000 +DEAL::Hyperslab_b sum dataset_4 FullMatrix (Write): 6.00000 +DEAL::Sum dataset_5 FullMatrix (Write): 1.12425e+06 +DEAL::Write tests for FullMatrix datasets +DEAL::Dimensions dataset_1 FullMatrix (Write): 50 30 +DEAL::Size dataset_1 FullMatrix (Write): 1500 +DEAL::Rank dataset_1 FullMatrix (Write): 2 +DEAL::Sum dataset_1 FullMatrix (Write): 1.12425e+06 +DEAL::Dimensions dataset_2 FullMatrix (Write): 50 30 +DEAL::Size dataset_2 FullMatrix (Write): 1500 +DEAL::Rank dataset_2 FullMatrix (Write): 2 +DEAL::Sum dataset_2 FullMatrix (Write): 61.0000 +DEAL::Sum dataset_3 FullMatrix (Write): 1.12425e+06 +DEAL::Dimensions dataset_4 FullMatrix (Write): 50 30 +DEAL::Size dataset_4 FullMatrix (Write): 1500 +DEAL::Rank dataset_4 FullMatrix (Write): 2 +DEAL::Sum dataset_4 FullMatrix (Write): 1179.00 +DEAL::Hyperslab_a sum dataset_4 FullMatrix (Write): 45.0000 +DEAL::Hyperslab_b sum dataset_4 FullMatrix (Write): 6.00000 +DEAL::Sum dataset_5 FullMatrix (Write): 1.12425e+06 +DEAL::Write tests for datasets +DEAL::Dimensions dataset_1 (Write): 50 30 +DEAL::Size dataset_1 (Write): 1500 +DEAL::Rank dataset_1 (Write): 2 +DEAL::Sum dataset_1 (Write): 1.12425e+06 +DEAL::Dimensions dataset_2 (Write): 50 30 +DEAL::Size dataset_2 (Write): 1500 +DEAL::Rank dataset_2 (Write): 2 +DEAL::Sum dataset_2 (Write): 61.0000 +DEAL::Dimensions dataset_3 (Write): 50 30 +DEAL::Size dataset_3 (Write): 1500 +DEAL::Rank dataset_3 (Write): 2 +DEAL::Sum dataset_3 (Write): 1.12425e+06 +DEAL::Dimensions dataset_4 (Write): 50 30 +DEAL::Size dataset_4 (Write): 1500 +DEAL::Rank dataset_4 (Write): 2 +DEAL::Sum dataset_4 (Write): 1179.00 +DEAL::Hyperslab_a sum dataset_4 (Write): 45.0000 +DEAL::Hyperslab_b sum dataset_4 (Write): 6.00000 +DEAL::Sum dataset_5 (Write): 1.12425e+06 +DEAL::Write tests for datasets +DEAL::Dimensions dataset_1 (Write): 50 30 +DEAL::Size dataset_1 (Write): 1500 +DEAL::Rank dataset_1 (Write): 2 +DEAL::Sum dataset_1 (Write): 1.12425e+06 +DEAL::Dimensions dataset_2 (Write): 50 30 +DEAL::Size dataset_2 (Write): 1500 +DEAL::Rank dataset_2 (Write): 2 +DEAL::Sum dataset_2 (Write): 61.0000 +DEAL::Sum dataset_3 (Write): 1.12425e+06 +DEAL::Dimensions dataset_4 (Write): 50 30 +DEAL::Size dataset_4 (Write): 1500 +DEAL::Rank dataset_4 (Write): 2 +DEAL::Sum dataset_4 (Write): 1179.00 +DEAL::Hyperslab_a sum dataset_4 (Write): 45.0000 +DEAL::Hyperslab_b sum dataset_4 (Write): 6.00000 +DEAL::Sum dataset_5 (Write): 1.12425e+06 +DEAL::Read tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Read): 50 30 +DEAL::Size dataset_1 std::vector (Read): 1500 +DEAL::Rank dataset_1 std::vector (Read): 2 +DEAL::Sum dataset_1 std::vector (Read): 1.12425e+06 +DEAL::Dimensions dataset_2 std::vector (Read): 50 30 +DEAL::Size dataset_2 std::vector (Read): 1500 +DEAL::Rank dataset_2 std::vector (Read): 2 +DEAL::Sum dataset_2 std::vector (Read): 61.0000 +DEAL::Selection dataset_2 std::vector (Read): 2.00000, 3.00000, 5.00000, 6.00000 +DEAL::Dimensions dataset_3 std::vector (Read): 50 30 +DEAL::Size dataset_3 std::vector (Read): 1500 +DEAL::Rank dataset_3 std::vector (Read): 2 +DEAL::Sum dataset_3 std::vector (Read): 1.12425e+06 +DEAL::Dimensions dataset_4 std::vector (Read): 50 30 +DEAL::Size dataset_4 std::vector (Read): 1500 +DEAL::Rank dataset_4 std::vector (Read): 2 +DEAL::Sum dataset_4 std::vector (Read): 1179.00 +DEAL::Hyperslab_a sum dataset_4 std::vector (Read): 45.0000 +DEAL::Hyperslab_b sum dataset_4 std::vector (Read): 6.00000 +DEAL::Dimensions dataset_5 std::vector (Read): 1500 +DEAL::Size dataset_5 std::vector (Read): 1500 +DEAL::Rank dataset_5 std::vector (Read): 1 +DEAL::Sum dataset_5 std::vector (Read): 1.12425e+06 +DEAL::Read tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Read): 50 30 +DEAL::Size dataset_1 std::vector (Read): 1500 +DEAL::Rank dataset_1 std::vector (Read): 2 +DEAL::Sum dataset_1 std::vector (Read): 1.12425e+06 +DEAL::Dimensions dataset_2 std::vector (Read): 50 30 +DEAL::Size dataset_2 std::vector (Read): 1500 +DEAL::Rank dataset_2 std::vector (Read): 2 +DEAL::Sum dataset_2 std::vector (Read): 61.0000 +DEAL::Selection dataset_2 std::vector (Read): 2.00000, 3.00000, 5.00000, 6.00000 +DEAL::Dimensions dataset_3 std::vector (Read): 50 30 +DEAL::Size dataset_3 std::vector (Read): 1500 +DEAL::Rank dataset_3 std::vector (Read): 2 +DEAL::Sum dataset_3 std::vector (Read): 1.12425e+06 +DEAL::Dimensions dataset_4 std::vector (Read): 50 30 +DEAL::Size dataset_4 std::vector (Read): 1500 +DEAL::Rank dataset_4 std::vector (Read): 2 +DEAL::Sum dataset_4 std::vector (Read): 1179.00 +DEAL::Hyperslab_a sum dataset_4 std::vector (Read): 45.0000 +DEAL::Hyperslab_b sum dataset_4 std::vector (Read): 6.00000 +DEAL::Dimensions dataset_5 std::vector (Read): 1500 +DEAL::Size dataset_5 std::vector (Read): 1500 +DEAL::Rank dataset_5 std::vector (Read): 1 +DEAL::Sum dataset_5 std::vector (Read): 1.12425e+06 +DEAL::Read tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Read): 50 30 +DEAL::Size dataset_1 std::vector (Read): 1500 +DEAL::Rank dataset_1 std::vector (Read): 2 +DEAL::Sum dataset_1 std::vector (Read): 1124250 +DEAL::Dimensions dataset_2 std::vector (Read): 50 30 +DEAL::Size dataset_2 std::vector (Read): 1500 +DEAL::Rank dataset_2 std::vector (Read): 2 +DEAL::Sum dataset_2 std::vector (Read): 61 +DEAL::Selection dataset_2 std::vector (Read): 2, 3, 5, 6 +DEAL::Dimensions dataset_4 std::vector (Read): 50 30 +DEAL::Size dataset_4 std::vector (Read): 1500 +DEAL::Rank dataset_4 std::vector (Read): 2 +DEAL::Sum dataset_4 std::vector (Read): 1179 +DEAL::Hyperslab_a sum dataset_4 std::vector (Read): 45 +DEAL::Hyperslab_b sum dataset_4 std::vector (Read): 6 +DEAL::Dimensions dataset_5 std::vector (Read): 1500 +DEAL::Size dataset_5 std::vector (Read): 1500 +DEAL::Rank dataset_5 std::vector (Read): 1 +DEAL::Sum dataset_5 std::vector (Read): 1124250 +DEAL::Read tests for std::vector datasets +DEAL::Dimensions dataset_1 std::vector (Read): 50 30 +DEAL::Size dataset_1 std::vector (Read): 1500 +DEAL::Rank dataset_1 std::vector (Read): 2 +DEAL::Sum dataset_1 std::vector (Read): 1124250 +DEAL::Dimensions dataset_2 std::vector (Read): 50 30 +DEAL::Size dataset_2 std::vector (Read): 1500 +DEAL::Rank dataset_2 std::vector (Read): 2 +DEAL::Sum dataset_2 std::vector (Read): 61 +DEAL::Selection dataset_2 std::vector (Read): 2, 3, 5, 6 +DEAL::Dimensions dataset_4 std::vector (Read): 50 30 +DEAL::Size dataset_4 std::vector (Read): 1500 +DEAL::Rank dataset_4 std::vector (Read): 2 +DEAL::Sum dataset_4 std::vector (Read): 1179 +DEAL::Hyperslab_a sum dataset_4 std::vector (Read): 45 +DEAL::Hyperslab_b sum dataset_4 std::vector (Read): 6 +DEAL::Dimensions dataset_5 std::vector (Read): 1500 +DEAL::Size dataset_5 std::vector (Read): 1500 +DEAL::Rank dataset_5 std::vector (Read): 1 +DEAL::Sum dataset_5 std::vector (Read): 1124250 +DEAL::Read tests for FullMatrix datasets +DEAL::Dimensions dataset_1 FullMatrix (Read): 50 30 +DEAL::Size dataset_1 FullMatrix (Read): 1500 +DEAL::Rank dataset_1 FullMatrix (Read): 2 +DEAL::Sum dataset_1 FullMatrix (Read): 1.12425e+06 +DEAL::Dimensions dataset_2 FullMatrix (Read): 50 30 +DEAL::Size dataset_2 FullMatrix (Read): 1500 +DEAL::Rank dataset_2 FullMatrix (Read): 2 +DEAL::Sum dataset_2 FullMatrix (Read): 61.0000 +DEAL::Selection dataset_2 FullMatrix (Read): 2.00000, 3.00000, 5.00000, 6.00000 +DEAL::Dimensions dataset_3 FullMatrix (Read): 50 30 +DEAL::Size dataset_3 FullMatrix (Read): 1500 +DEAL::Rank dataset_3 FullMatrix (Read): 2 +DEAL::Sum dataset_3 FullMatrix (Read): 1.12425e+06 +DEAL::Dimensions dataset_4 FullMatrix (Read): 50 30 +DEAL::Size dataset_4 FullMatrix (Read): 1500 +DEAL::Rank dataset_4 FullMatrix (Read): 2 +DEAL::Sum dataset_4 FullMatrix (Read): 1179.00 +DEAL::Hyperslab_a sum dataset_4 FullMatrix (Read): 45.0000 +DEAL::Hyperslab_b sum dataset_4 FullMatrix (Read): 6.00000 +DEAL::Dimensions dataset_5 FullMatrix (Read): 50 30 +DEAL::Size dataset_5 FullMatrix (Read): 1500 +DEAL::Rank dataset_5 FullMatrix (Read): 2 +DEAL::Sum dataset_5 FullMatrix (Read): 1.12425e+06 +DEAL::Read tests for FullMatrix datasets +DEAL::Dimensions dataset_1 FullMatrix (Read): 50 30 +DEAL::Size dataset_1 FullMatrix (Read): 1500 +DEAL::Rank dataset_1 FullMatrix (Read): 2 +DEAL::Sum dataset_1 FullMatrix (Read): 1.12425e+06 +DEAL::Dimensions dataset_2 FullMatrix (Read): 50 30 +DEAL::Size dataset_2 FullMatrix (Read): 1500 +DEAL::Rank dataset_2 FullMatrix (Read): 2 +DEAL::Sum dataset_2 FullMatrix (Read): 61.0000 +DEAL::Selection dataset_2 FullMatrix (Read): 2.00000, 3.00000, 5.00000, 6.00000 +DEAL::Dimensions dataset_3 FullMatrix (Read): 50 30 +DEAL::Size dataset_3 FullMatrix (Read): 1500 +DEAL::Rank dataset_3 FullMatrix (Read): 2 +DEAL::Sum dataset_3 FullMatrix (Read): 1.12425e+06 +DEAL::Dimensions dataset_4 FullMatrix (Read): 50 30 +DEAL::Size dataset_4 FullMatrix (Read): 1500 +DEAL::Rank dataset_4 FullMatrix (Read): 2 +DEAL::Sum dataset_4 FullMatrix (Read): 1179.00 +DEAL::Hyperslab_a sum dataset_4 FullMatrix (Read): 45.0000 +DEAL::Hyperslab_b sum dataset_4 FullMatrix (Read): 6.00000 +DEAL::Dimensions dataset_5 FullMatrix (Read): 50 30 +DEAL::Size dataset_5 FullMatrix (Read): 1500 +DEAL::Rank dataset_5 FullMatrix (Read): 2 +DEAL::Sum dataset_5 FullMatrix (Read): 1.12425e+06 +DEAL::Read tests for datasets +DEAL::Dimensions dataset_1 (Read): 50 30 +DEAL::Size dataset_1 (Read): 1500 +DEAL::Rank dataset_1 (Read): 2 +DEAL::Sum dataset_1 (Read): 1.12425e+06 +DEAL::Dimensions dataset_2 (Read): 50 30 +DEAL::Size dataset_2 (Read): 1500 +DEAL::Rank dataset_2 (Read): 2 +DEAL::Sum dataset_2 (Read): 61.0000 +DEAL::Selection dataset_2 (Read): 2.00000, 3.00000, 5.00000, 6.00000 +DEAL::Dimensions dataset_3 (Read): 50 30 +DEAL::Size dataset_3 (Read): 1500 +DEAL::Rank dataset_3 (Read): 2 +DEAL::Sum dataset_3 (Read): 1.12425e+06 +DEAL::Dimensions dataset_4 (Read): 50 30 +DEAL::Size dataset_4 (Read): 1500 +DEAL::Rank dataset_4 (Read): 2 +DEAL::Sum dataset_4 (Read): 1179.00 +DEAL::Hyperslab_a sum dataset_4 (Read): 45.0000 +DEAL::Hyperslab_b sum dataset_4 (Read): 6.00000 +DEAL::Dimensions dataset_5 (Read): 1500 +DEAL::Size dataset_5 (Read): 1500 +DEAL::Rank dataset_5 (Read): 1 +DEAL::Sum dataset_5 (Read): 1.12425e+06 +DEAL::Read tests for datasets +DEAL::Dimensions dataset_1 (Read): 50 30 +DEAL::Size dataset_1 (Read): 1500 +DEAL::Rank dataset_1 (Read): 2 +DEAL::Sum dataset_1 (Read): 1.12425e+06 +DEAL::Dimensions dataset_2 (Read): 50 30 +DEAL::Size dataset_2 (Read): 1500 +DEAL::Rank dataset_2 (Read): 2 +DEAL::Sum dataset_2 (Read): 61.0000 +DEAL::Selection dataset_2 (Read): 2.00000, 3.00000, 5.00000, 6.00000 +DEAL::Dimensions dataset_3 (Read): 50 30 +DEAL::Size dataset_3 (Read): 1500 +DEAL::Rank dataset_3 (Read): 2 +DEAL::Sum dataset_3 (Read): 1.12425e+06 +DEAL::Dimensions dataset_4 (Read): 50 30 +DEAL::Size dataset_4 (Read): 1500 +DEAL::Rank dataset_4 (Read): 2 +DEAL::Sum dataset_4 (Read): 1179.00 +DEAL::Hyperslab_a sum dataset_4 (Read): 45.0000 +DEAL::Hyperslab_b sum dataset_4 (Read): 6.00000 +DEAL::Dimensions dataset_5 (Read): 1500 +DEAL::Size dataset_5 (Read): 1500 +DEAL::Rank dataset_5 (Read): 1 +DEAL::Sum dataset_5 (Read): 1.12425e+06 -- 2.39.5