diff --git a/include/codi/tapes/misc/internalAdjointsInterface.hpp b/include/codi/tapes/misc/internalAdjointsInterface.hpp index 774ab532..fdb63b22 100644 --- a/include/codi/tapes/misc/internalAdjointsInterface.hpp +++ b/include/codi/tapes/misc/internalAdjointsInterface.hpp @@ -110,8 +110,8 @@ namespace codi { /// Ensure that identifiers up to newSize can be passed to operator[] without error. CODI_NO_INLINE void resize(Identifier const& newSize); - /// Set all adjoint variables up to and including maxIndex to Gradient(). - CODI_INLINE void zeroAll(Identifier const& maxIndex); + /// Set all adjoint variables up to and including maxIdentifier to Gradient(). + CODI_INLINE void zeroAll(Identifier const& maxIdentifier); /// Swap two sets of adjoint variables. Internally, declares usage of the adjoints. template diff --git a/include/codi/tapes/misc/localAdjoints.hpp b/include/codi/tapes/misc/localAdjoints.hpp index 1b7ae0ff..68589db2 100644 --- a/include/codi/tapes/misc/localAdjoints.hpp +++ b/include/codi/tapes/misc/localAdjoints.hpp @@ -95,8 +95,8 @@ namespace codi { } /// \copydoc InternalAdjointsInterface::zeroAll - CODI_INLINE void zeroAll(Identifier const& maxIndex) { - Identifier maxSize = std::min(maxIndex + 1, (Identifier)adjoints.size()); + CODI_INLINE void zeroAll(Identifier const& maxIdentifier) { + Identifier maxSize = std::min(maxIdentifier + 1, (Identifier)adjoints.size()); for (Identifier i = 0; i < maxSize; i += 1) { adjoints[i] = Gradient(); } diff --git a/include/codi/tapes/misc/threadSafeGlobalAdjoints.hpp b/include/codi/tapes/misc/threadSafeGlobalAdjoints.hpp index 88de3a70..843e88ba 100644 --- a/include/codi/tapes/misc/threadSafeGlobalAdjoints.hpp +++ b/include/codi/tapes/misc/threadSafeGlobalAdjoints.hpp @@ -109,8 +109,8 @@ namespace codi { } /// \copydoc InternalAdjointsInterface::zeroAll - CODI_INLINE void zeroAll(Identifier const& maxIndex) { - Identifier maxSize = std::min(maxIndex + 1, (Identifier)adjoints.size()); + CODI_INLINE void zeroAll(Identifier const& maxIdentifier) { + Identifier maxSize = std::min(maxIdentifier + 1, (Identifier)adjoints.size()); for (Identifier i = 0; i < maxSize; i += 1) { adjoints[i] = Gradient(); }