Skip to content

Commit 7370be8

Browse files
committed
EXODUS,IOSS,CI: Remove the BUILT_IN_SIERRA ifdef to help unify cmake/bjam build
1 parent 46efe17 commit 7370be8

File tree

4 files changed

+14
-17
lines changed

4 files changed

+14
-17
lines changed

packages/seacas/Jamfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#---------------------------------------------------------------
2-
# Copyright(C) 1999-2020, 2024 National Technology & Engineering Solutions
2+
# Copyright(C) 1999-2020, 2024, 2025 National Technology & Engineering Solutions
33
# of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
44
# NTESS, the U.S. Government retains certain rights in this software.
55
#
@@ -520,14 +520,12 @@ lib Ioss
520520
/tpl/parmetis//parmetis
521521
/tpl/fmt//fmt
522522
/mpi//mpi
523-
: <define>BUILT_IN_SIERRA
523+
:
524524
[ ifuserbuild
525525
# Any parameters within this 'ifuserbuild' block apply to user
526526
# builds only and will not be present for developer builds.
527527
<file>$(seacas-root)/lib/libIoss.a
528528
]
529-
:
530-
: <define>BUILT_IN_SIERRA
531529
;
532530

533531
lib Iotr
@@ -615,7 +613,7 @@ lib exodus
615613
[ glob $(seacas-root)/libraries/exodus/src/deprecated/*.c ]
616614
]
617615
/tpl/netcdf-c//netcdf
618-
: <define>BUILT_IN_SIERRA
616+
: <define>EXODUS_RELAXED_MULTIPLE_OPEN_CHECK
619617
[ ifdevbuild
620618
# Any parameters within this 'ifdevbuild' block apply to development
621619
# builds only and will not be present for user builds.
@@ -628,7 +626,7 @@ lib exodus
628626
<file>$(sierra-root)/seacas/lib/libexodus.a
629627
]
630628
:
631-
: <define>BUILT_IN_SIERRA
629+
: <define>EXODUS_RELAXED_MULTIPLE_OPEN_CHECK
632630
[ ifdevbuild
633631
# Any parameters within this 'ifdevbuild' block apply to development
634632
# builds only and will not be present for user builds.

packages/seacas/libraries/exodus/src/ex_conv.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright(C) 1999-2021, 2024 National Technology & Engineering Solutions
2+
* Copyright(C) 1999-2021, 2024, 2025 National Technology & Engineering Solutions
33
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
44
* NTESS, the U.S. Government retains certain rights in this software.
55
*
@@ -60,7 +60,7 @@ int exi_check_multiple_open(const char *path, int mode, const char *func)
6060
" File corruption or incorrect behavior can occur.\n",
6161
path);
6262
ex_err(func, errmsg, EX_BADFILEID);
63-
#if defined BUILT_IN_SIERRA
63+
#if defined(EXODUS_RELAXED_MULTIPLE_OPEN_CHECK)
6464
EX_FUNC_LEAVE(EX_NOERR);
6565
#else
6666
EX_FUNC_LEAVE(EX_FATAL);
@@ -78,7 +78,6 @@ int exi_check_valid_file_id(int exoid, const char *func)
7878
if (exoid <= 0) {
7979
error = true;
8080
}
81-
#if !defined BUILT_IN_SIERRA
8281
else {
8382
int rootid = exoid & EX_FILE_ID_MASK;
8483
struct exi_file_item *file = exi_find_file_item(rootid);
@@ -87,7 +86,6 @@ int exi_check_valid_file_id(int exoid, const char *func)
8786
error = true;
8887
}
8988
}
90-
#endif
9189

9290
if (error) {
9391
int old_opt = ex_opts(EX_VERBOSE);

packages/seacas/libraries/ioss/src/Ioss_CodeTypes.h

Lines changed: 6 additions & 5 deletions
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
//
@@ -29,8 +29,11 @@ inline std::string IOSS_VECTOR_2D() { return {"vector_2d"}; }
2929
inline std::string IOSS_VECTOR_3D() { return {"vector_3d"}; }
3030
inline std::string IOSS_SYM_TENSOR() { return {"sym_tensor_33"}; }
3131

32-
#if defined(BUILT_IN_SIERRA)
33-
#define MAP_USE_SORTED_VECTOR
32+
#if __has_include("SEACASIoss_config.h")
33+
+// This is a CMake build
34+
#include "SEACASIoss_config.h"
35+
#else
36+
+// This is not a CMake build
3437
#define SEACAS_HAVE_MPI
3538
/* #undef IOSS_THREADSAFE */
3639
/* #undef SEACAS_HAVE_KOKKOS */
@@ -39,8 +42,6 @@ inline std::string IOSS_SYM_TENSOR() { return {"sym_tensor_33"}; }
3942
#define SEACAS_HAVE_CGNS
4043
/* #undef SEACAS_HAVE_FAODEL */
4144
#define SEACAS_HAVE_PAMGEN
42-
#else
43-
#include "SEACASIoss_config.h"
4445
#endif
4546

4647
#if defined(IOSS_THREADSAFE)

packages/seacas/libraries/ioss/src/Ioss_Map.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright(C) 1999-2020, 2022, 2023, 2024 National Technology & Engineering Solutions
1+
// Copyright(C) 1999-2020, 2022, 2023, 2024, 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
//
@@ -15,7 +15,7 @@
1515

1616
#include "ioss_export.h"
1717

18-
#define MAP_USE_STD
18+
#define MAP_USE_SORTED_VECTOR
1919
#if defined MAP_USE_STD
2020
#include <unordered_map>
2121
#elif defined MAP_USE_HOPSCOTCH

0 commit comments

Comments
 (0)