Skip to content

Commit

Permalink
APREPRO: Variables defined via Units are internal
Browse files Browse the repository at this point in the history
  • Loading branch information
gsjaardema committed Apr 3, 2024
1 parent 8924b90 commit 952ccbc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/seacas/libraries/aprepro_lib/apr_aprepro.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright(C) 1999-2023 National Technology & Engineering Solutions
// Copyright(C) 1999-2024 National Technology & Engineering Solutions
// of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
// NTESS, the U.S. Government retains certain rights in this software.
//
Expand Down Expand Up @@ -34,8 +34,8 @@
#endif

namespace {
const std::string version_short{"6.25"};
const std::string version_date{"(2023/10/12)"};
const std::string version_short{"6.26"};
const std::string version_date{"(2024/04/03)"};
const std::string version_string = version_short + " " + version_date;

void output_copyright();
Expand Down
8 changes: 4 additions & 4 deletions packages/seacas/libraries/aprepro_lib/apr_units.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright(C) 1999-2020, 2023 National Technology & Engineering Solutions
// Copyright(C) 1999-2020, 2023, 2024 National Technology & Engineering Solutions
// of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
// NTESS, the U.S. Government retains certain rights in this software.
//
Expand Down Expand Up @@ -28,7 +28,7 @@ namespace {

void define_var(const char *name, double val, const char *label)
{
aprepro->add_variable(name, val, true);
aprepro->add_variable(name, val, true, true);
if (echo) {
*(aprepro->infoStream) << comment() << " 1 " << std::left << std::setw(10) << name
<< "\t= " << std::setw(14) << std::setprecision(7) << val << " "
Expand Down Expand Up @@ -316,11 +316,11 @@ unit_systems systems[] =
if (systems[i].name != nullptr) {
// Found a match
for (int j = 0; systems[i].label[j].vname != nullptr; j++) {
aprepro->add_variable(systems[i].label[j].vname, systems[i].label[j].value, true);
aprepro->add_variable(systems[i].label[j].vname, systems[i].label[j].value, true, true);
}

for (int j = 0; systems[i].base[j].vname != nullptr; j++) {
aprepro->add_variable(systems[i].base[j].vname, systems[i].base[j].value, true);
aprepro->add_variable(systems[i].base[j].vname, systems[i].base[j].value, true, true);
}

symrec *var = aprepro->getsym("_UNITS_SYSTEM");
Expand Down

0 comments on commit 952ccbc

Please sign in to comment.