Skip to content

Commit 89f6fe9

Browse files
committed
Resolve tagging issue in PassiveAssign
1 parent 0bbd832 commit 89f6fe9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Common/include/basic_types/datatype_structure.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,13 @@ void SetDerivative(su2double& data, const passivedouble& val);
8989

9090
FORCEINLINE void SetValue(su2double& data, const passivedouble& val) { data.setValue(val); }
9191

92+
FORCEINLINE passivedouble GetValue(const &double data) { return data; }
93+
9294
FORCEINLINE passivedouble GetValue(const su2double& data) { return data.getValue(); }
9395

96+
template<typename Expr>
97+
FORCEINLINE passivedouble GetValue(const codi::ExpressionInterface<double, Expr>& data) { return data.cast().getValue(); }
98+
9499
FORCEINLINE void SetSecondary(su2double& data, const passivedouble& val) { data.setGradient(val); }
95100

96101
FORCEINLINE void SetDerivative(su2double& data, const passivedouble& val) { data.setGradient(val); }

0 commit comments

Comments
 (0)