From 71a6afcfb450543a82b0e3fa040cfee351dba7cc Mon Sep 17 00:00:00 2001 From: Tim Fuller Date: Fri, 12 Jan 2024 07:47:06 -0700 Subject: [PATCH] Fix 12648 (#12650) * fix spelling error in environment variable name. closes: #12648 * change another instance of LIMT -> LIMIT --- packages/tpetra/core/src/Tpetra_Details_Behavior.cpp | 3 +-- packages/tpetra/core/src/Tpetra_Details_ExecutionSpaces.hpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/tpetra/core/src/Tpetra_Details_Behavior.cpp b/packages/tpetra/core/src/Tpetra_Details_Behavior.cpp index eb48d6621fac..a490aa8a766d 100644 --- a/packages/tpetra/core/src/Tpetra_Details_Behavior.cpp +++ b/packages/tpetra/core/src/Tpetra_Details_Behavior.cpp @@ -573,7 +573,7 @@ bool Behavior::overlapCommunicationAndComputation () size_t Behavior::spacesIdWarnLimit () { - constexpr char envVarName[] = "TPETRA_SPACES_ID_WARN_LIMT"; + constexpr char envVarName[] = "TPETRA_SPACES_ID_WARN_LIMIT"; constexpr size_t defaultValue(16); static size_t value_ = defaultValue; @@ -645,4 +645,3 @@ bool Behavior::timeKokkosFunctions() } // namespace Details } // namespace Tpetra - diff --git a/packages/tpetra/core/src/Tpetra_Details_ExecutionSpaces.hpp b/packages/tpetra/core/src/Tpetra_Details_ExecutionSpaces.hpp index 6ea51cf20fac..64fb47f6fa81 100644 --- a/packages/tpetra/core/src/Tpetra_Details_ExecutionSpaces.hpp +++ b/packages/tpetra/core/src/Tpetra_Details_ExecutionSpaces.hpp @@ -231,7 +231,7 @@ template class InstanceLifetimeManager { TPETRA_DETAILS_SPACES_THROW( "requested instance id " << i << " (>= " << Tpetra::Details::Behavior::spacesIdWarnLimit() - << ") set by TPETRA_SPACES_ID_WARN_LIMT"); + << ") set by TPETRA_SPACES_ID_WARN_LIMIT"); } // make sure we can store an exec space at index i for priority