Skip to content

Commit

Permalink
Missing interface changes for TagTape.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxSagebaum committed Aug 7, 2024
1 parent 30cef12 commit b4c6bcb
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions include/codi/tapes/tagging/tagTapeReverse.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.

/// @}
/*******************************************************************************/
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b4c6bcb

Please sign in to comment.