diff --git a/include/codi/tapes/tagging/tagTapeReverse.hpp b/include/codi/tapes/tagging/tagTapeReverse.hpp index fb96bf9d..40127d02 100644 --- a/include/codi/tapes/tagging/tagTapeReverse.hpp +++ b/include/codi/tapes/tagging/tagTapeReverse.hpp @@ -169,7 +169,11 @@ namespace codi { Base::swap(other); } void resetHard() {} ///< Do nothing. - void deleteAdjointVector() {} ///< Do nothing. + + void deleteAdjointVector() {} ///< Do nothing. + void resizeAdjointVector() {} ///< Do nothing. + void beginUseAdjointVector() {} ///< Do nothing. + void endUseAdjointVector() {} ///< Do nothing. /// @} /*******************************************************************************/ @@ -208,28 +212,38 @@ namespace codi { /// @{ /// Verify tag. - void setGradient(Identifier const& identifier, Gradient const& gradient) { - CODI_UNUSED(gradient); + void setGradient(Identifier const& identifier, Gradient const& gradient, + AdjointsManagement adjointsManagement = AdjointsManagement::Automatic) { + CODI_UNUSED(gradient, adjointsManagement); Base::verifyTagAndProperties(identifier.tag, 0.0, identifier.properties); } /// Verify tag. - Gradient const& getGradient(Identifier const& identifier) const { + Gradient const& getGradient(Identifier const& identifier, + AdjointsManagement adjointsManagement = AdjointsManagement::Automatic) const { + CODI_UNUSED(adjointsManagement); + Base::verifyTagAndProperties(identifier.tag, 0.0, identifier.properties); return tempGradient; } /// Verify tag. - Gradient& gradient(Identifier const& identifier) { + Gradient& gradient(Identifier const& identifier, + AdjointsManagement adjointsManagement = AdjointsManagement::Automatic) { + CODI_UNUSED(adjointsManagement); + Base::verifyTagAndProperties(identifier.tag, 0.0, identifier.properties); return tempGradient; } /// Verify tag. - Gradient const& gradient(Identifier const& identifier) const { + Gradient const& gradient(Identifier const& identifier, + AdjointsManagement adjointsManagement = AdjointsManagement::Automatic) const { + CODI_UNUSED(adjointsManagement); + Base::verifyTagAndProperties(identifier.tag, 0.0, identifier.properties); return tempGradient;