Skip to content

Commit 3739611

Browse files
authored
Merge pull request #642 from sandialabs/do_not_lower_case_database_names
Do not lower case database names
2 parents 25bf0be + 66d5d5a commit 3739611

File tree

14 files changed

+42
-32
lines changed

14 files changed

+42
-32
lines changed

packages/seacas/applications/cpup/cpup.C

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <vector>
1212

1313
#include "add_to_log.h"
14-
#define FMT_DEPRECATED_OSTREAM
14+
1515
#include "fmt/ostream.h"
1616
#include "fmt/ranges.h"
1717
#include "format_time.h"
@@ -173,9 +173,12 @@ template <typename INT> void cpup(Cpup::SystemInterface &interFace, INT /*dummy*
173173
// Query the system to see if the number of files exceeds the system limit and we
174174
// need to force use of minimize_open_files...
175175
int max_files = open_file_limit() - 1; // We also have an output file.
176+
if (debug_level & 1) {
177+
fmt::print(stderr, "{} Open file limit = {}\n", time_stamp(tsFormat), max_files);
178+
}
176179
if (interFace.processor_count() > max_files) {
177180
minimize_open_files = true;
178-
fmt::print("Single file mode... (Max open = {})\n", max_files);
181+
fmt::print("INFO: Automatically setting single file mode... (Max open = {})\n", max_files);
179182
}
180183
}
181184

Lines changed: 3 additions & 3 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
//
@@ -9,6 +9,6 @@
99

1010
static const std::array<std::string, 3> qainfo{
1111
"ejoin",
12-
"2024/08/29",
13-
"1.6.5",
12+
"2025/04/18",
13+
"1.6.6",
1414
};

packages/seacas/applications/ejoin/EJoin.C

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ int main(int argc, char *argv[])
215215
if (dbi[p]->int_byte_size_api() > int_byte_size) {
216216
int_byte_size = dbi[p]->int_byte_size_api();
217217
}
218+
dbi[p]->set_lower_case_database_names(false);
218219
}
219220

220221
for (size_t p = 0; p < interFace.inputFiles_.size(); p++) {
Lines changed: 3 additions & 3 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
//
@@ -9,6 +9,6 @@
99

1010
static const std::array<std::string, 3> qainfo{
1111
"slice",
12-
"2024/07/17",
13-
"2.3.01",
12+
"2025/04/18",
13+
"2.3.02",
1414
};

packages/seacas/applications/slice/Slice.C

Lines changed: 2 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
//
@@ -397,6 +397,7 @@ int main(int argc, char *argv[])
397397
dbi->set_int_byte_size_api(Ioss::USE_INT64_API);
398398
}
399399

400+
dbi->set_lower_case_database_names(false);
400401
dbi->set_surface_split_type(Ioss::SPLIT_BY_DONT_SPLIT);
401402
dbi->set_field_separator(0);
402403

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ namespace Ioss {
772772
bool isParallel{false}; //!< true if running in parallel
773773

774774
mutable bool lowerCaseVariableNames{true};
775-
mutable bool lowerCaseDatabaseNames{false};
775+
mutable bool lowerCaseDatabaseNames{true};
776776
bool usingParallelIO{false};
777777

778778
// List of element blocks that should be omitted or included from

packages/seacas/libraries/ioss/src/exodus/Ioex_ParallelDatabaseIO.C

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ namespace Ioex {
12161216
}
12171217
else {
12181218
block_name = Ioex::get_entity_name(get_file_pointer(), entity_type, id, basename,
1219-
maximumNameLength, db_has_name);
1219+
maximumNameLength, lowerCaseDatabaseNames, db_has_name);
12201220
}
12211221
if (get_use_generic_canonical_name()) {
12221222
std::swap(block_name, alias);
@@ -1534,8 +1534,9 @@ namespace Ioex {
15341534
side_set_name = alias;
15351535
}
15361536
else {
1537-
side_set_name = Ioex::get_entity_name(get_file_pointer(), EX_SIDE_SET, id, "surface",
1538-
maximumNameLength, db_has_name);
1537+
side_set_name =
1538+
Ioex::get_entity_name(get_file_pointer(), EX_SIDE_SET, id, "surface",
1539+
maximumNameLength, lowerCaseDatabaseNames, db_has_name);
15391540
}
15401541

15411542
if (side_set_name == "universal_sideset") {
@@ -1897,7 +1898,7 @@ namespace Ioex {
18971898
}
18981899
else {
18991900
Xset_name = Ioex::get_entity_name(get_file_pointer(), type, id, base + "list",
1900-
maximumNameLength, db_has_name);
1901+
maximumNameLength, lowerCaseDatabaseNames, db_has_name);
19011902
}
19021903

19031904
if (get_use_generic_canonical_name()) {

packages/seacas/libraries/ioss/src/main/io_info.C

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include <stdint.h>
1616
#include <tokenize.h>
1717

18-
#define FMT_DEPRECATED_OSTREAM
1918
#include <cstddef>
2019
#include <cstdlib>
2120
#include <fmt/format.h>
@@ -667,6 +666,9 @@ namespace Ioss {
667666
dbi->set_use_generic_canonical_name(true);
668667
}
669668

669+
dbi->set_lower_case_variable_names(false);
670+
dbi->set_lower_case_database_names(false);
671+
670672
if (interFace.surface_split_scheme() != Ioss::SPLIT_INVALID) {
671673
dbi->set_surface_split_type(Ioss::int_to_surface_split(interFace.surface_split_scheme()));
672674
}

packages/seacas/libraries/ioss/src/main/io_info_main.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
namespace {
2424
std::string codename;
25-
std::string version = "1.07 (2024/11/08)";
25+
std::string version = "1.08 (2025/04/18)";
2626

2727
#ifdef SEACAS_HAVE_MPI
2828
void mpi_finalize()

packages/seacas/libraries/ioss/src/main/io_modify.C

Lines changed: 3 additions & 2 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
//
@@ -71,7 +71,7 @@ using real = double;
7171

7272
namespace {
7373
std::string codename;
74-
std::string version = "2.07 (2024-04-15)";
74+
std::string version = "2.08 (2025-04-18)";
7575

7676
std::vector<Ioss::GroupingEntity *> attributes_modified;
7777

@@ -524,6 +524,7 @@ namespace {
524524
if (dbi == nullptr || !dbi->ok(true)) {
525525
std::exit(EXIT_FAILURE);
526526
}
527+
dbi->set_lower_case_database_names(false);
527528
}
528529

529530
void handle_help(const std::string &topic)

0 commit comments

Comments
 (0)