Skip to content

Commit 6d832da

Browse files
committed
IOSS: Fix so utst utils works with mpi build
1 parent 9220f02 commit 6d832da

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/seacas/libraries/ioss/src/utest/Utst_utils.C

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright(C) 1999-2024 National Technology & Engineering Solutions
1+
// Copyright(C) 1999-2025 National Technology & Engineering Solutions
22
// of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
33
// NTESS, the U.S. Government retains certain rights in this software.
44
//
@@ -11,6 +11,7 @@
1111
#include <string>
1212
#include <vector>
1313

14+
#include "Ioss_CodeTypes.h"
1415
#include "Ioss_ConcreteVariableType.h"
1516
#include "Ioss_Field.h"
1617
#include "Ioss_Utils.h"
@@ -219,6 +220,7 @@ TEST_CASE("format_id_list")
219220
CHECK(ret == std::string("1 and 43 to 100040 and 100042"));
220221
}
221222

223+
#ifndef SEACAS_HAVE_MPI
222224
SECTION("detect unsorted two ids") { CHECK_THROWS(Ioss::Utils::format_id_list({2, 1})); }
223225

224226
SECTION("detect unsorted ids") { CHECK_THROWS(Ioss::Utils::format_id_list({1, 2, 3, 4, 5, 1})); }
@@ -227,5 +229,6 @@ TEST_CASE("format_id_list")
227229
{
228230
CHECK_THROWS(Ioss::Utils::format_id_list({1, 2, 3, 3, 4, 5, 6}));
229231
}
232+
#endif
230233
}
231234
#endif

0 commit comments

Comments
 (0)