@@ -184,6 +184,13 @@ TEST(sidre_datacollection, dc_reload_gf)
184
184
sdc_writer.SetCycle (0 );
185
185
sdc_writer.Save ();
186
186
187
+ #ifndef AXOM_USE_HDF5
188
+ SUCCEED ()
189
+ << " sidre::MFEMSidreDataCollection::load(<cycle>) is only implemented "
190
+ " for the 'sidre_hdf5' protocol" ;
191
+ return ;
192
+ #endif
193
+
187
194
// No mesh is used here
188
195
MFEMSidreDataCollection sdc_reader (testName ());
189
196
@@ -236,6 +243,13 @@ TEST(sidre_datacollection, dc_reload_gf_vdim)
236
243
sdc_writer.SetCycle (0 );
237
244
sdc_writer.Save ();
238
245
246
+ #ifndef AXOM_USE_HDF5
247
+ SUCCEED ()
248
+ << " sidre::MFEMSidreDataCollection::load(<cycle>) is only implemented "
249
+ " for the 'sidre_hdf5' protocol" ;
250
+ return ;
251
+ #endif
252
+
239
253
// No mesh is used here
240
254
MFEMSidreDataCollection sdc_reader (testName ());
241
255
@@ -256,8 +270,16 @@ TEST(sidre_datacollection, dc_reload_gf_vdim)
256
270
EXPECT_TRUE (sdc_reader.verifyMeshBlueprint ());
257
271
}
258
272
273
+ // Note: This test use Group::loadExternalData(), which is only valid (implemented)
274
+ // for sidre_hdf5 protocol. Let's skip the test in configs w/o hdf5
259
275
TEST (sidre_datacollection, dc_reload_externaldata)
260
276
{
277
+ #ifndef AXOM_USE_HDF5
278
+ SUCCEED () << " sidre::Group::loadExternalData() is only implemented "
279
+ " for the 'sidre_hdf5' protocol" ;
280
+ return ;
281
+ #endif
282
+
261
283
const std::string view_name = " external_data" ;
262
284
263
285
// Create DC
@@ -336,6 +358,13 @@ TEST(sidre_datacollection, dc_reload_mesh)
336
358
sdc_writer.SetCycle (0 );
337
359
sdc_writer.Save ();
338
360
361
+ #ifndef AXOM_USE_HDF5
362
+ SUCCEED ()
363
+ << " sidre::MFEMSidreDataCollection::load(<cycle>) is only implemented "
364
+ " for the 'sidre_hdf5' protocol" ;
365
+ return ;
366
+ #endif
367
+
339
368
// No mesh is used here to construct as it will be read in
340
369
MFEMSidreDataCollection sdc_reader (testName ());
341
370
#if defined(AXOM_USE_MPI) && defined(MFEM_USE_MPI)
@@ -400,6 +429,13 @@ TEST(sidre_datacollection, dc_reload_qf)
400
429
sdc_writer.SetTime (8.0 );
401
430
sdc_writer.Save ();
402
431
432
+ #ifndef AXOM_USE_HDF5
433
+ SUCCEED ()
434
+ << " sidre::MFEMSidreDataCollection::load(<cycle>) is only implemented "
435
+ " for the 'sidre_hdf5' protocol" ;
436
+ return ;
437
+ #endif
438
+
403
439
MFEMSidreDataCollection sdc_reader (testName ());
404
440
#if defined(AXOM_USE_MPI) && defined(MFEM_USE_MPI)
405
441
sdc_reader.SetComm (MPI_COMM_WORLD);
@@ -893,6 +929,13 @@ TEST(sidre_datacollection, dc_par_reload_gf)
893
929
sdc_writer.SetCycle (0 );
894
930
sdc_writer.Save ();
895
931
932
+ #ifndef AXOM_USE_HDF5
933
+ SUCCEED ()
934
+ << " sidre::MFEMSidreDataCollection::load(<cycle>) is only implemented "
935
+ " for the 'sidre_hdf5' protocol" ;
936
+ return ;
937
+ #endif
938
+
896
939
MFEMSidreDataCollection sdc_reader (testName ());
897
940
898
941
// Needs to be set "manually" in order for everything to be loaded in properly
@@ -964,6 +1007,13 @@ TEST(sidre_datacollection, dc_par_reload_gf_ordering)
964
1007
sdc_writer.SetCycle (0 );
965
1008
sdc_writer.Save ();
966
1009
1010
+ #ifndef AXOM_USE_HDF5
1011
+ SUCCEED ()
1012
+ << " sidre::MFEMSidreDataCollection::load(<cycle>) is only implemented "
1013
+ " for the 'sidre_hdf5' protocol" ;
1014
+ return ;
1015
+ #endif
1016
+
967
1017
MFEMSidreDataCollection sdc_reader (testName ());
968
1018
969
1019
// Needs to be set "manually" in order for everything to be loaded in properly
@@ -1063,6 +1113,13 @@ TEST(sidre_datacollection, dc_par_reload_multi_datastore)
1063
1113
second_sdc_writer.SetCycle (0 );
1064
1114
second_sdc_writer.Save ();
1065
1115
1116
+ #ifndef AXOM_USE_HDF5
1117
+ SUCCEED ()
1118
+ << " sidre::MFEMSidreDataCollection::load(<cycle>) is only implemented "
1119
+ " for the 'sidre_hdf5' protocol" ;
1120
+ return ;
1121
+ #endif
1122
+
1066
1123
axom::sidre::DataStore ds_read;
1067
1124
1068
1125
first_global_grp = ds_read.getRoot ()->createGroup (first_coll_name + " _global" );
@@ -1127,20 +1184,41 @@ TEST(sidre_datacollection, dc_par_reload_multi_datastore)
1127
1184
1128
1185
TEST (sidre_datacollection, dc_par_reload_mesh_1D_small)
1129
1186
{
1187
+ #ifndef AXOM_USE_HDF5
1188
+ SUCCEED ()
1189
+ << " sidre::MFEMSidreDataCollection::load(<cycle>) is only implemented "
1190
+ " for the 'sidre_hdf5' protocol" ;
1191
+ return ;
1192
+ #endif
1193
+
1130
1194
// 1D mesh divided into segments
1131
1195
auto mesh = mfem::Mesh::MakeCartesian1D (10 );
1132
1196
testParallelMeshReloadAllPartitionings (mesh);
1133
1197
}
1134
1198
1135
1199
TEST (sidre_datacollection, dc_par_reload_mesh_2D_small)
1136
1200
{
1201
+ #ifndef AXOM_USE_HDF5
1202
+ SUCCEED ()
1203
+ << " sidre::MFEMSidreDataCollection::load(<cycle>) is only implemented "
1204
+ " for the 'sidre_hdf5' protocol" ;
1205
+ return ;
1206
+ #endif
1207
+
1137
1208
// 2D mesh divided into triangles
1138
1209
auto mesh = mfem::Mesh::MakeCartesian2D (10 , 10 , mfem::Element::TRIANGLE);
1139
1210
testParallelMeshReloadAllPartitionings (mesh);
1140
1211
}
1141
1212
1142
1213
TEST (sidre_datacollection, dc_par_reload_mesh_2D_large)
1143
1214
{
1215
+ #ifndef AXOM_USE_HDF5
1216
+ SUCCEED ()
1217
+ << " sidre::MFEMSidreDataCollection::load(<cycle>) is only implemented "
1218
+ " for the 'sidre_hdf5' protocol" ;
1219
+ return ;
1220
+ #endif
1221
+
1144
1222
// 2D mesh divided into triangles
1145
1223
auto mesh = mfem::Mesh::MakeCartesian2D (100 , 100 , mfem::Element::TRIANGLE);
1146
1224
testParallelMeshReloadAllPartitionings (mesh);
@@ -1150,6 +1228,13 @@ TEST(sidre_datacollection, dc_par_reload_mesh_2D_large)
1150
1228
#if (MFEM_VERSION >= 40300)
1151
1229
TEST (sidre_datacollection, dc_par_reload_mesh_2D_periodic)
1152
1230
{
1231
+ #ifndef AXOM_USE_HDF5
1232
+ SUCCEED ()
1233
+ << " sidre::MFEMSidreDataCollection::load(<cycle>) is only implemented "
1234
+ " for the 'sidre_hdf5' protocol" ;
1235
+ return ;
1236
+ #endif
1237
+
1153
1238
// periodic 2D mesh divided into triangles
1154
1239
auto base_mesh = mfem::Mesh::MakeCartesian2D (10 ,
1155
1240
10 ,
@@ -1167,27 +1252,55 @@ TEST(sidre_datacollection, dc_par_reload_mesh_2D_periodic)
1167
1252
1168
1253
TEST (sidre_datacollection, dc_par_reload_mesh_3D_small_tet)
1169
1254
{
1255
+ #ifndef AXOM_USE_HDF5
1256
+ SUCCEED ()
1257
+ << " sidre::MFEMSidreDataCollection::load(<cycle>) is only implemented "
1258
+ " for the 'sidre_hdf5' protocol" ;
1259
+ return ;
1260
+ #endif
1261
+
1170
1262
// 3D mesh divided into tetrahedra
1171
1263
auto mesh = mfem::Mesh::MakeCartesian3D (2 , 2 , 2 , mfem::Element::TETRAHEDRON);
1172
1264
testParallelMeshReloadAllPartitionings (mesh);
1173
1265
}
1174
1266
1175
1267
TEST (sidre_datacollection, dc_par_reload_mesh_3D_medium_tet)
1176
1268
{
1269
+ #ifndef AXOM_USE_HDF5
1270
+ SUCCEED ()
1271
+ << " sidre::MFEMSidreDataCollection::load(<cycle>) is only implemented "
1272
+ " for the 'sidre_hdf5' protocol" ;
1273
+ return ;
1274
+ #endif
1275
+
1177
1276
// 3D mesh divided into tetrahedra
1178
1277
auto mesh = mfem::Mesh::MakeCartesian3D (10 , 10 , 10 , mfem::Element::TETRAHEDRON);
1179
1278
testParallelMeshReloadAllPartitionings (mesh);
1180
1279
}
1181
1280
1182
1281
TEST (sidre_datacollection, dc_par_reload_mesh_3D_small_hex)
1183
1282
{
1283
+ #ifndef AXOM_USE_HDF5
1284
+ SUCCEED ()
1285
+ << " sidre::MFEMSidreDataCollection::load(<cycle>) is only implemented "
1286
+ " for the 'sidre_hdf5' protocol" ;
1287
+ return ;
1288
+ #endif
1289
+
1184
1290
// 3D mesh divided into hexahedra
1185
1291
auto mesh = mfem::Mesh::MakeCartesian3D (3 , 3 , 3 , mfem::Element::HEXAHEDRON);
1186
1292
testParallelMeshReloadAllPartitionings (mesh);
1187
1293
}
1188
1294
1189
1295
TEST (sidre_datacollection, dc_par_reload_mesh_3D_medium_hex)
1190
1296
{
1297
+ #ifndef AXOM_USE_HDF5
1298
+ SUCCEED ()
1299
+ << " sidre::MFEMSidreDataCollection::load(<cycle>) is only implemented "
1300
+ " for the 'sidre_hdf5' protocol" ;
1301
+ return ;
1302
+ #endif
1303
+
1191
1304
// 3D mesh divided into hexahedra
1192
1305
auto mesh = mfem::Mesh::MakeCartesian3D (10 , 10 , 10 , mfem::Element::HEXAHEDRON);
1193
1306
testParallelMeshReloadAllPartitionings (mesh);
0 commit comments