Skip to content
Snippets Groups Projects
Commit 5a0f8744 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Add tests for SubItemArrayPerItemVariant checkpointing

parent 4028d689
No related branches found
No related tags found
1 merge request!199Integrate checkpointing
...@@ -72,11 +72,15 @@ readSubItemArrayPerItemVariant(const HighFive::Group& sub_item_array_per_item_va ...@@ -72,11 +72,15 @@ readSubItemArrayPerItemVariant(const HighFive::Group& sub_item_array_per_item_va
readSubItemArrayPerItem<TinyMatrix<3>, item_type, sub_item_type>(sub_item_array_per_item_variant_group, readSubItemArrayPerItem<TinyMatrix<3>, item_type, sub_item_type>(sub_item_array_per_item_variant_group,
"arrays", connectivity)); "arrays", connectivity));
} else { } else {
// LCOV_EXCL_START
throw UnexpectedError("unexpected discrete function data type: " + data_type); throw UnexpectedError("unexpected discrete function data type: " + data_type);
// LCOV_EXCL_STOP
} }
return p_sub_item_array_per_item_variant; return p_sub_item_array_per_item_variant;
} else { } else {
// LCOV_EXCL_START
throw UnexpectedError("item_type and sub_item_type must be different"); throw UnexpectedError("item_type and sub_item_type must be different");
// LCOV_EXCL_STOP
} }
} }
......
...@@ -177,6 +177,7 @@ if(PUGS_HAS_HDF5) ...@@ -177,6 +177,7 @@ if(PUGS_HAS_HDF5)
test_checkpointing_IWriter.cpp test_checkpointing_IWriter.cpp
test_checkpointing_IZoneDescriptor.cpp test_checkpointing_IZoneDescriptor.cpp
test_checkpointing_Mesh.cpp test_checkpointing_Mesh.cpp
test_checkpointing_SubItemArrayPerItemVariant.cpp
test_checkpointing_SubItemValuePerItemVariant.cpp test_checkpointing_SubItemValuePerItemVariant.cpp
test_checkpointing_Table.cpp test_checkpointing_Table.cpp
) )
......
...@@ -34,12 +34,6 @@ check_is_same(const ItemArray<DataType, item_type>& reference, const EmbeddedDat ...@@ -34,12 +34,6 @@ check_is_same(const ItemArray<DataType, item_type>& reference, const EmbeddedDat
same &= (a(i, j) == b(i, j)); same &= (a(i, j) == b(i, j));
} }
} }
} else {
same = false;
}
if (not same) {
throw UnexpectedError("a!=b");
} }
return parallel::allReduceAnd(same); return parallel::allReduceAnd(same);
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment