From e61a8c6a13c28e035ec1a5d98fd5702864fd8524 Mon Sep 17 00:00:00 2001 From: Daniel Garcia-Sanchez Date: Mon, 29 Oct 2018 20:53:10 +0100 Subject: [PATCH] Add complex=off for the test hdf5_05 --- tests/base/hdf5_05.cc | 6 + ...ue.with_complex_values=off.mpirun=1.output | 111 ++++++++++++++++++ ...ue.with_complex_values=off.mpirun=4.output | 111 ++++++++++++++++++ 3 files changed, 228 insertions(+) create mode 100644 tests/base/hdf5_05.with_hdf5=true.with_complex_values=off.mpirun=1.output create mode 100644 tests/base/hdf5_05.with_hdf5=true.with_complex_values=off.mpirun=4.output diff --git a/tests/base/hdf5_05.cc b/tests/base/hdf5_05.cc index 70b39c9a74..a9fdfffcfe 100644 --- a/tests/base/hdf5_05.cc +++ b/tests/base/hdf5_05.cc @@ -1174,8 +1174,11 @@ main(int argc, char **argv) write_test(data_file, mpi_communicator, pcout); write_test(data_file, mpi_communicator, pcout); + +#ifdef DEAL_II_WITH_COMPLEX_VALUES write_test>(data_file, mpi_communicator, pcout); write_test>(data_file, mpi_communicator, pcout); +#endif } { @@ -1184,8 +1187,11 @@ 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 } } catch (std::exception &exc) diff --git a/tests/base/hdf5_05.with_hdf5=true.with_complex_values=off.mpirun=1.output b/tests/base/hdf5_05.with_hdf5=true.with_complex_values=off.mpirun=1.output new file mode 100644 index 0000000000..a28e159235 --- /dev/null +++ b/tests/base/hdf5_05.with_hdf5=true.with_complex_values=off.mpirun=1.output @@ -0,0 +1,111 @@ + +DEAL::Write tests for float datasets +DEAL::Dimensions dataset_1 (Write): 5 3 +DEAL::Size dataset_1 (Write): 15 +DEAL::Rank dataset_1 (Write): 2 +DEAL::Data dataset_1 (Write): [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] +DEAL::Dimensions dataset_2 (Write): 2 5 3 +DEAL::Size dataset_2 (Write): 30 +DEAL::Rank dataset_2 (Write): 3 +DEAL::Data dataset_2 (Write): [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] +DEAL::Dimensions dataset_3 (Write): 2 5 3 +DEAL::Size dataset_3 (Write): 30 +DEAL::Rank dataset_3 (Write): 3 +DEAL::Dimensions dataset_4 (Write): 3 2 4 +DEAL::Size dataset_4 (Write): 24 +DEAL::Rank dataset_4 (Write): 3 +DEAL::Dimensions dataset_5 (Write): 3 2 4 +DEAL::Size dataset_5 (Write): 24 +DEAL::Rank dataset_5 (Write): 3 +DEAL::Dimensions dataset_6 (Write): 7 12 +DEAL::Size dataset_6 (Write): 84 +DEAL::Rank dataset_6 (Write): 2 +DEAL::Write tests for double datasets +DEAL::Dimensions dataset_1 (Write): 5 3 +DEAL::Size dataset_1 (Write): 15 +DEAL::Rank dataset_1 (Write): 2 +DEAL::Data dataset_1 (Write): [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] +DEAL::Dimensions dataset_2 (Write): 2 5 3 +DEAL::Size dataset_2 (Write): 30 +DEAL::Rank dataset_2 (Write): 3 +DEAL::Data dataset_2 (Write): [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] +DEAL::Dimensions dataset_3 (Write): 2 5 3 +DEAL::Size dataset_3 (Write): 30 +DEAL::Rank dataset_3 (Write): 3 +DEAL::Dimensions dataset_4 (Write): 3 2 4 +DEAL::Size dataset_4 (Write): 24 +DEAL::Rank dataset_4 (Write): 3 +DEAL::Dimensions dataset_5 (Write): 3 2 4 +DEAL::Size dataset_5 (Write): 24 +DEAL::Rank dataset_5 (Write): 3 +DEAL::Dimensions dataset_6 (Write): 7 12 +DEAL::Size dataset_6 (Write): 84 +DEAL::Rank dataset_6 (Write): 2 +DEAL::Read tests for float datasets +DEAL::Dimensions dataset_1 (Read): 5 3 +DEAL::Size dataset_1 (Read): 15 +DEAL::Rank dataset_1 (Read): 2 +DEAL::Data dataset_1 (Read): [[0, 1, 2], [3, 4, 5], [6, 7, 8], [9, 10, 11], [12, 13, 14]] +DEAL::Column vector dataset_1 (Read): [7, 10, 13] +DEAL::Row vector dataset_1 (Read): [9, 10, 11] +DEAL::Sub-matrix dataset_1 (Read): [[3, 4, 5], [6, 7, 8]] +DEAL::Dimensions dataset_2 (Read): 2 5 3 +DEAL::Size dataset_2 (Read): 30 +DEAL::Rank dataset_2 (Read): 3 +DEAL::Data dataset_2 (Read): [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] +DEAL::Column vector dataset_2 (Read): [16, 19, 22, 25] +DEAL::Row vector dataset_2 (Read): [1, 16] +DEAL::Sub-matrix dataset_2 (Read): [[18, 19], [21, 22], [24, 25]] +DEAL::Sub-matrix dataset_2 (Read): [[3, 4, 5], [18, 19, 20]] +DEAL::Sub-matrix dataset_2 (Read): [[0, 2], [6, 8], [12, 14]] +DEAL::Selection dataset_2 (Read): [0, 20, 22, 13, 11] +DEAL::Dimensions dataset_3 (Read): 2 5 3 +DEAL::Size dataset_3 (Read): 30 +DEAL::Rank dataset_3 (Read): 3 +DEAL::Data dataset_3 (Read): [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +DEAL::Dimensions dataset_4 (Read): 3 2 4 +DEAL::Size dataset_4 (Read): 24 +DEAL::Rank dataset_4 (Read): 3 +DEAL::Data dataset_4 (Read): [0, 1, 2, 3, 0, 0, 0, 0, 4, 5, 6, 7, 0, 0, 0, 0, 8, 9, 10, 11, 0, 0, 0, 0] +DEAL::Dimensions dataset_5 (Read): 3 2 4 +DEAL::Size dataset_5 (Read): 24 +DEAL::Rank dataset_5 (Read): 3 +DEAL::Data dataset_5 (Read): [2, 0, 0, 0, 6, 5, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +DEAL::Dimensions dataset_6 (Read): 7 12 +DEAL::Size dataset_6 (Read): 84 +DEAL::Rank dataset_6 (Read): 2 +DEAL::Data dataset_6 (Read): [[0, 0, 1, 0, 2, 3, 0, 4, 5, 0, 6, 7], [0, 8, 9, 0, 10, 11, 0, 12, 13, 0, 14, 15], [0, 16, 17, 0, 18, 19, 0, 20, 21, 0, 22, 23], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 24, 25, 0, 26, 27, 0, 28, 29, 0, 30, 31], [0, 32, 33, 0, 34, 35, 0, 36, 37, 0, 38, 39], [0, 40, 41, 0, 42, 43, 0, 44, 45, 0, 46, 47]] +DEAL::Read tests for double datasets +DEAL::Dimensions dataset_1 (Read): 5 3 +DEAL::Size dataset_1 (Read): 15 +DEAL::Rank dataset_1 (Read): 2 +DEAL::Data dataset_1 (Read): [[0, 1, 2], [3, 4, 5], [6, 7, 8], [9, 10, 11], [12, 13, 14]] +DEAL::Column vector dataset_1 (Read): [7, 10, 13] +DEAL::Row vector dataset_1 (Read): [9, 10, 11] +DEAL::Sub-matrix dataset_1 (Read): [[3, 4, 5], [6, 7, 8]] +DEAL::Dimensions dataset_2 (Read): 2 5 3 +DEAL::Size dataset_2 (Read): 30 +DEAL::Rank dataset_2 (Read): 3 +DEAL::Data dataset_2 (Read): [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] +DEAL::Column vector dataset_2 (Read): [16, 19, 22, 25] +DEAL::Row vector dataset_2 (Read): [1, 16] +DEAL::Sub-matrix dataset_2 (Read): [[18, 19], [21, 22], [24, 25]] +DEAL::Sub-matrix dataset_2 (Read): [[3, 4, 5], [18, 19, 20]] +DEAL::Sub-matrix dataset_2 (Read): [[0, 2], [6, 8], [12, 14]] +DEAL::Selection dataset_2 (Read): [0, 20, 22, 13, 11] +DEAL::Dimensions dataset_3 (Read): 2 5 3 +DEAL::Size dataset_3 (Read): 30 +DEAL::Rank dataset_3 (Read): 3 +DEAL::Data dataset_3 (Read): [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +DEAL::Dimensions dataset_4 (Read): 3 2 4 +DEAL::Size dataset_4 (Read): 24 +DEAL::Rank dataset_4 (Read): 3 +DEAL::Data dataset_4 (Read): [0, 1, 2, 3, 0, 0, 0, 0, 4, 5, 6, 7, 0, 0, 0, 0, 8, 9, 10, 11, 0, 0, 0, 0] +DEAL::Dimensions dataset_5 (Read): 3 2 4 +DEAL::Size dataset_5 (Read): 24 +DEAL::Rank dataset_5 (Read): 3 +DEAL::Data dataset_5 (Read): [2, 0, 0, 0, 6, 5, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +DEAL::Dimensions dataset_6 (Read): 7 12 +DEAL::Size dataset_6 (Read): 84 +DEAL::Rank dataset_6 (Read): 2 +DEAL::Data dataset_6 (Read): [[0, 0, 1, 0, 2, 3, 0, 4, 5, 0, 6, 7], [0, 8, 9, 0, 10, 11, 0, 12, 13, 0, 14, 15], [0, 16, 17, 0, 18, 19, 0, 20, 21, 0, 22, 23], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 24, 25, 0, 26, 27, 0, 28, 29, 0, 30, 31], [0, 32, 33, 0, 34, 35, 0, 36, 37, 0, 38, 39], [0, 40, 41, 0, 42, 43, 0, 44, 45, 0, 46, 47]] diff --git a/tests/base/hdf5_05.with_hdf5=true.with_complex_values=off.mpirun=4.output b/tests/base/hdf5_05.with_hdf5=true.with_complex_values=off.mpirun=4.output new file mode 100644 index 0000000000..63ad57eb58 --- /dev/null +++ b/tests/base/hdf5_05.with_hdf5=true.with_complex_values=off.mpirun=4.output @@ -0,0 +1,111 @@ + +DEAL::Write tests for float datasets +DEAL::Dimensions dataset_1 (Write): 5 3 +DEAL::Size dataset_1 (Write): 15 +DEAL::Rank dataset_1 (Write): 2 +DEAL::Data dataset_1 (Write): [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] +DEAL::Dimensions dataset_2 (Write): 2 5 3 +DEAL::Size dataset_2 (Write): 30 +DEAL::Rank dataset_2 (Write): 3 +DEAL::Data dataset_2 (Write): [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] +DEAL::Dimensions dataset_3 (Write): 2 5 3 +DEAL::Size dataset_3 (Write): 30 +DEAL::Rank dataset_3 (Write): 3 +DEAL::Dimensions dataset_4 (Write): 3 2 4 +DEAL::Size dataset_4 (Write): 24 +DEAL::Rank dataset_4 (Write): 3 +DEAL::Dimensions dataset_5 (Write): 3 2 4 +DEAL::Size dataset_5 (Write): 24 +DEAL::Rank dataset_5 (Write): 3 +DEAL::Dimensions dataset_6 (Write): 7 12 +DEAL::Size dataset_6 (Write): 84 +DEAL::Rank dataset_6 (Write): 2 +DEAL::Write tests for double datasets +DEAL::Dimensions dataset_1 (Write): 5 3 +DEAL::Size dataset_1 (Write): 15 +DEAL::Rank dataset_1 (Write): 2 +DEAL::Data dataset_1 (Write): [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] +DEAL::Dimensions dataset_2 (Write): 2 5 3 +DEAL::Size dataset_2 (Write): 30 +DEAL::Rank dataset_2 (Write): 3 +DEAL::Data dataset_2 (Write): [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] +DEAL::Dimensions dataset_3 (Write): 2 5 3 +DEAL::Size dataset_3 (Write): 30 +DEAL::Rank dataset_3 (Write): 3 +DEAL::Dimensions dataset_4 (Write): 3 2 4 +DEAL::Size dataset_4 (Write): 24 +DEAL::Rank dataset_4 (Write): 3 +DEAL::Dimensions dataset_5 (Write): 3 2 4 +DEAL::Size dataset_5 (Write): 24 +DEAL::Rank dataset_5 (Write): 3 +DEAL::Dimensions dataset_6 (Write): 7 12 +DEAL::Size dataset_6 (Write): 84 +DEAL::Rank dataset_6 (Write): 2 +DEAL::Read tests for float datasets +DEAL::Dimensions dataset_1 (Read): 5 3 +DEAL::Size dataset_1 (Read): 15 +DEAL::Rank dataset_1 (Read): 2 +DEAL::Data dataset_1 (Read): [[0, 1, 2], [3, 4, 5], [6, 7, 8], [9, 10, 11], [12, 13, 14]] +DEAL::Column vector dataset_1 (Read): [7, 10, 13] +DEAL::Row vector dataset_1 (Read): [9, 10, 11] +DEAL::Sub-matrix dataset_1 (Read): [[3, 4, 5], [6, 7, 8]] +DEAL::Dimensions dataset_2 (Read): 2 5 3 +DEAL::Size dataset_2 (Read): 30 +DEAL::Rank dataset_2 (Read): 3 +DEAL::Data dataset_2 (Read): [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] +DEAL::Column vector dataset_2 (Read): [16, 19, 22, 25] +DEAL::Row vector dataset_2 (Read): [1, 16] +DEAL::Sub-matrix dataset_2 (Read): [[18, 19], [21, 22], [24, 25]] +DEAL::Sub-matrix dataset_2 (Read): [[3, 4, 5], [18, 19, 20]] +DEAL::Sub-matrix dataset_2 (Read): [[0, 2], [6, 8], [12, 14]] +DEAL::Selection dataset_2 (Read): [0, 20, 22, 13, 11] +DEAL::Dimensions dataset_3 (Read): 2 5 3 +DEAL::Size dataset_3 (Read): 30 +DEAL::Rank dataset_3 (Read): 3 +DEAL::Data dataset_3 (Read): [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28] +DEAL::Dimensions dataset_4 (Read): 3 2 4 +DEAL::Size dataset_4 (Read): 24 +DEAL::Rank dataset_4 (Read): 3 +DEAL::Data dataset_4 (Read): [0, 1, 2, 3, 0, 2, 4, 6, 4, 5, 6, 7, 8, 10, 12, 14, 8, 9, 10, 11, 16, 18, 20, 22] +DEAL::Dimensions dataset_5 (Read): 3 2 4 +DEAL::Size dataset_5 (Read): 24 +DEAL::Rank dataset_5 (Read): 3 +DEAL::Data dataset_5 (Read): [2, 0, 0, 38, 6, 5, 0, 3, 12, 0, 0, 0, 16, 15, 0, 13, 32, 0, 0, 0, 36, 35, 0, 33] +DEAL::Dimensions dataset_6 (Read): 7 12 +DEAL::Size dataset_6 (Read): 84 +DEAL::Rank dataset_6 (Read): 2 +DEAL::Data dataset_6 (Read): [[-0, 0, 1, -1, 2, 3, -2, 4, 5, -3, 6, 7], [-4, 8, 9, -5, 10, 11, -6, 12, 13, -7, 14, 15], [-8, 16, 17, -9, 18, 19, -10, 20, 21, -11, 22, 23], [-12, 0, 0, -13, 0, 0, -14, 0, 0, -15, 0, 0], [-16, 24, 25, -17, 26, 27, -18, 28, 29, -19, 30, 31], [-20, 32, 33, -21, 34, 35, -22, 36, 37, -23, 38, 39], [-24, 40, 41, -25, 42, 43, -26, 44, 45, -27, 46, 47]] +DEAL::Read tests for double datasets +DEAL::Dimensions dataset_1 (Read): 5 3 +DEAL::Size dataset_1 (Read): 15 +DEAL::Rank dataset_1 (Read): 2 +DEAL::Data dataset_1 (Read): [[0, 1, 2], [3, 4, 5], [6, 7, 8], [9, 10, 11], [12, 13, 14]] +DEAL::Column vector dataset_1 (Read): [7, 10, 13] +DEAL::Row vector dataset_1 (Read): [9, 10, 11] +DEAL::Sub-matrix dataset_1 (Read): [[3, 4, 5], [6, 7, 8]] +DEAL::Dimensions dataset_2 (Read): 2 5 3 +DEAL::Size dataset_2 (Read): 30 +DEAL::Rank dataset_2 (Read): 3 +DEAL::Data dataset_2 (Read): [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] +DEAL::Column vector dataset_2 (Read): [16, 19, 22, 25] +DEAL::Row vector dataset_2 (Read): [1, 16] +DEAL::Sub-matrix dataset_2 (Read): [[18, 19], [21, 22], [24, 25]] +DEAL::Sub-matrix dataset_2 (Read): [[3, 4, 5], [18, 19, 20]] +DEAL::Sub-matrix dataset_2 (Read): [[0, 2], [6, 8], [12, 14]] +DEAL::Selection dataset_2 (Read): [0, 20, 22, 13, 11] +DEAL::Dimensions dataset_3 (Read): 2 5 3 +DEAL::Size dataset_3 (Read): 30 +DEAL::Rank dataset_3 (Read): 3 +DEAL::Data dataset_3 (Read): [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28] +DEAL::Dimensions dataset_4 (Read): 3 2 4 +DEAL::Size dataset_4 (Read): 24 +DEAL::Rank dataset_4 (Read): 3 +DEAL::Data dataset_4 (Read): [0, 1, 2, 3, 0, 2, 4, 6, 4, 5, 6, 7, 8, 10, 12, 14, 8, 9, 10, 11, 16, 18, 20, 22] +DEAL::Dimensions dataset_5 (Read): 3 2 4 +DEAL::Size dataset_5 (Read): 24 +DEAL::Rank dataset_5 (Read): 3 +DEAL::Data dataset_5 (Read): [2, 0, 0, 38, 6, 5, 0, 3, 12, 0, 0, 0, 16, 15, 0, 13, 32, 0, 0, 0, 36, 35, 0, 33] +DEAL::Dimensions dataset_6 (Read): 7 12 +DEAL::Size dataset_6 (Read): 84 +DEAL::Rank dataset_6 (Read): 2 +DEAL::Data dataset_6 (Read): [[-0, 0, 1, -1, 2, 3, -2, 4, 5, -3, 6, 7], [-4, 8, 9, -5, 10, 11, -6, 12, 13, -7, 14, 15], [-8, 16, 17, -9, 18, 19, -10, 20, 21, -11, 22, 23], [-12, 0, 0, -13, 0, 0, -14, 0, 0, -15, 0, 0], [-16, 24, 25, -17, 26, 27, -18, 28, 29, -19, 30, 31], [-20, 32, 33, -21, 34, 35, -22, 36, 37, -23, 38, 39], [-24, 40, 41, -25, 42, 43, -26, 44, 45, -27, 46, 47]] -- 2.39.5